Checks whether the status is a client error (4xx
).
Checks whether the status is an error (4xx
and 5xx
).
Checks whether the status is a redirection (3xx
).
Checks whether the status is a server error (5xx
).
Checks whether the status is a client error (2xx
).
Allows instances of Status to be used as extractors for Response.
Represents an HTTP status code, as defined in RFC 2616.
This class and its companion objects provide various extraction helpers to ease pattern matching. For example:
It's also possible to pattern match directly on instances of Response, which can be useful when mapping on requests:
See the companion object for known status codes.