Category
public enum Category : Int
The category of a HTTPStatus code.
-
An informational (i.e. 100 - 199) response.
The request was received, processing is continuing.
Declaration
Swift
case informational -
A successful (i.e. 200 - 299) response.
The request was successfully received, understood and accepted by the server.
Declaration
Swift
case successful -
A redirection (i.e. 300 - 399) response.
Further action must be taken in order to complete the request.
Declaration
Swift
case redirection -
A client error (i.e. 400 - 499) response.
The request was malformed or cannot be fulfiled due to a client-side error.
Declaration
Swift
case clientError -
A server error (i.e. 500 - 599) response.
The server failed to fulfil an otherwise valid request.
Declaration
Swift
case serverError -
A response of unknown category.
Declaration
Swift
case unknown -
Initializes a
HTTPStatusCodebased on a given value.Declaration
Swift
public init(rawValue: Int)Parameters
rawValueThe status code of the HTTP status, e.g.
200).
View on GitHub
Install in Dash
Category Enumeration Reference