HttpStatus enum
- Inheritance
- Mixed-in types
- Available extensions
Values
- continue100 → const HttpStatus
-
{status-code: 100 Continue}. @see HTTP/1.1: Semantics and Content, section 6.2.1
const HttpStatus(100, Series.informational, 'Continue')
- switchingProtocols → const HttpStatus
-
{status-code: 101 Switching Protocols}. @see HTTP/1.1: Semantics and Content, section 6.2.2
const HttpStatus(101, Series.informational, 'Switching Protocols')
- processing → const HttpStatus
-
{status-code: 102 Processing}. @see WebDAV
const HttpStatus(102, Series.informational, 'Processing')
- earlyHints → const HttpStatus
-
{status-code: 103 Early Hints}. @see An HTTP Status Code for Indicating Hints @since 0.0.1.beta
const HttpStatus(103, Series.informational, 'Early Hints')
- ok → const HttpStatus
-
{status-code: 200 OK}. @see HTTP/1.1: Semantics and Content, section 6.3.1
const HttpStatus(200, Series.successful, 'OK')
- created → const HttpStatus
-
{status-code: 201 Created}. @see HTTP/1.1: Semantics and Content, section 6.3.2
const HttpStatus(201, Series.successful, 'Created')
- accepted → const HttpStatus
-
{status-code: 202 Accepted}. @see HTTP/1.1: Semantics and Content, section 6.3.3
const HttpStatus(202, Series.successful, 'Accepted')
- nonAuthoritativeInformation → const HttpStatus
-
{status-code: 203 Non-Authoritative Information}. @see HTTP/1.1: Semantics and Content, section 6.3.4
const HttpStatus(203, Series.successful, 'Non-Authoritative Information')
- noContent → const HttpStatus
-
{status-code: 204 No Content}. @see HTTP/1.1: Semantics and Content, section 6.3.5
const HttpStatus(204, Series.successful, 'No Content')
- resetContent → const HttpStatus
-
{status-code: 205 Reset Content}. @see HTTP/1.1: Semantics and Content, section 6.3.6
const HttpStatus(205, Series.successful, 'Reset Content')
- partialContent → const HttpStatus
-
{status-code: 206 Partial Content}. @see HTTP/1.1: Range Requests, section 4.1
const HttpStatus(206, Series.successful, 'Partial Content')
- multiStatus → const HttpStatus
-
{status-code: 207 Multi-Status}. @see WebDAV
const HttpStatus(207, Series.successful, 'Multi-Status')
- alreadyReported → const HttpStatus
-
{status-code: 208 Already Reported}. @see WebDAV Binding Extensions
const HttpStatus(208, Series.successful, 'Already Reported')
- imUsed → const HttpStatus
-
{status-code: 226 IM Used}. @see Delta encoding in HTTP
const HttpStatus(226, Series.successful, 'IM Used')
- multipleChoices → const HttpStatus
-
{status-code: 300 Multiple Choices}. @see HTTP/1.1: Semantics and Content, section 6.4.1
const HttpStatus(300, Series.redirection, 'Multiple Choices')
- movedPermanently → const HttpStatus
-
{status-code: 301 Moved Permanently}. @see HTTP/1.1: Semantics and Content, section 6.4.2
const HttpStatus(301, Series.redirection, 'Moved Permanently')
- found → const HttpStatus
-
{status-code: 302 Found}. @see HTTP/1.1: Semantics and Content, section 6.4.3
const HttpStatus(302, Series.redirection, 'Found')
- movedTemporarily → const HttpStatus
-
{status-code: 302 Moved Temporarily}. @see HTTP/1.0, section 9.3
const HttpStatus(302, Series.redirection, 'Moved Temporarily')
- seeOther → const HttpStatus
-
{status-code: 303 See Other}. @see HTTP/1.1: Semantics and Content, section 6.4.4
const HttpStatus(303, Series.redirection, 'See Other')
- notModified → const HttpStatus
-
{status-code: 304 Not Modified}. @see HTTP/1.1: Conditional Requests, section 4.1
const HttpStatus(304, Series.redirection, 'Not Modified')
- useProxy → const HttpStatus
-
{status-code: 305 Use Proxy}. @see HTTP/1.1: Semantics and Content, section 6.4.5
const HttpStatus(305, Series.redirection, 'Use Proxy')
- temporaryRedirect → const HttpStatus
-
{status-code: 307 Temporary Redirect}. @see HTTP/1.1: Semantics and Content, section 6.4.7
const HttpStatus(307, Series.redirection, 'Temporary Redirect')
- permanentRedirect → const HttpStatus
-
{status-code: 308 Permanent Redirect}. @see RFC 7238
const HttpStatus(308, Series.redirection, 'Permanent Redirect')
- badRequest → const HttpStatus
-
{status-code: 400 Bad Request}. @see HTTP/1.1: Semantics and Content, section 6.5.1
const HttpStatus(400, Series.clientError, 'Bad Request')
-
{status-code: 401 Unauthorized}. @see HTTP/1.1: Authentication, section 3.1
const HttpStatus(401, Series.clientError, 'Unauthorized')
- paymentRequired → const HttpStatus
-
{status-code: 402 Payment Required}. @see HTTP/1.1: Semantics and Content, section 6.5.2
const HttpStatus(402, Series.clientError, 'Payment Required')
- forbidden → const HttpStatus
-
{status-code: 403 Forbidden}. @see HTTP/1.1: Semantics and Content, section 6.5.3
const HttpStatus(403, Series.clientError, 'Forbidden')
- notFound → const HttpStatus
-
{status-code: 404 Not Found}. @see HTTP/1.1: Semantics and Content, section 6.5.4
const HttpStatus(404, Series.clientError, 'Not Found')
- methodNotAllowed → const HttpStatus
-
{status-code: 405 Method Not Allowed}. @see HTTP/1.1: Semantics and Content, section 6.5.5
const HttpStatus(405, Series.clientError, 'Method Not Allowed')
- notAcceptable → const HttpStatus
-
{status-code: 406 Not Acceptable}. @see HTTP/1.1: Semantics and Content, section 6.5.6
const HttpStatus(406, Series.clientError, 'Not Acceptable')
- proxyAuthenticationRequired → const HttpStatus
-
{status-code: 407 Proxy Authentication Required}. @see HTTP/1.1: Authentication, section 3.2
const HttpStatus(407, Series.clientError, 'Proxy Authentication Required')
- requestTimeout → const HttpStatus
-
{status-code: 408 Request Timeout}. @see HTTP/1.1: Semantics and Content, section 6.5.7
const HttpStatus(408, Series.clientError, 'Request Timeout')
- conflict → const HttpStatus
-
{status-code: 409 Conflict}. @see HTTP/1.1: Semantics and Content, section 6.5.8
const HttpStatus(409, Series.clientError, 'Conflict')
- gone → const HttpStatus
-
{status-code: 410 Gone}. @see HTTP/1.1: Semantics and Content, section 6.5.9
const HttpStatus(410, Series.clientError, 'Gone')
- lengthRequired → const HttpStatus
-
{status-code: 411 Length Required}. @see HTTP/1.1: Semantics and Content, section 6.5.10
const HttpStatus(411, Series.clientError, 'Length Required')
- preconditionFailed → const HttpStatus
-
{status-code: 412 Precondition failed}. @see HTTP/1.1: Conditional Requests, section 4.2
const HttpStatus(412, Series.clientError, 'Precondition Failed')
- payloadTooLarge → const HttpStatus
-
{status-code: 413 Payload Too Large}. @since 0.0.1.beta @see HTTP/1.1: Semantics and Content, section 6.5.11
const HttpStatus(413, Series.clientError, 'Payload Too Large')
- requestEntityTooLarge → const HttpStatus
-
{status-code: 413 Request Entity Too Large}. @see HTTP/1.1, section 10.4.14
const HttpStatus(413, Series.clientError, 'Request Entity Too Large')
- uriTooLong → const HttpStatus
-
{status-code: 414 URI Too Long}. @since 0.0.1.beta @see HTTP/1.1: Semantics and Content, section 6.5.12
const HttpStatus(414, Series.clientError, 'URI Too Long')
- requestURITooLong → const HttpStatus
-
{status-code: 414 Request-URI Too Long}. @see HTTP/1.1, section 10.4.15
const HttpStatus(414, Series.clientError, 'Request-URI Too Long')
- unsupportedMediaType → const HttpStatus
-
{status-code: 415 Unsupported Media Type}. @see HTTP/1.1: Semantics and Content, section 6.5.13
const HttpStatus(415, Series.clientError, 'Unsupported Media Type')
- rangeNotSatisfiable → const HttpStatus
-
{status-code: 416 Requested Range Not Satisfiable}. @see HTTP/1.1: Range Requests, section 4.4
const HttpStatus(416, Series.clientError, 'Requested range not satisfiable')
- expectationFailed → const HttpStatus
-
{status-code: 417 Expectation Failed}. @see HTTP/1.1: Semantics and Content, section 6.5.14
const HttpStatus(417, Series.clientError, 'Expectation Failed')
- imATeapot → const HttpStatus
-
{status-code: 418 I'm a teapot}. @see HTCPCP/1.0
const HttpStatus(418, Series.clientError, "I'm a teapot")
- insufficientSpaceOnResource → const HttpStatus
-
const HttpStatus(419, Series.clientError, 'Insufficient Space On Resource')
- methodFailure → const HttpStatus
-
const HttpStatus(420, Series.clientError, 'Method Failure')
- destinationLocked → const HttpStatus
-
const HttpStatus(421, Series.clientError, 'Destination Locked')
- unprocessableEntity → const HttpStatus
-
{status-code: 422 Unprocessable Entity}. @see WebDAV
const HttpStatus(422, Series.clientError, 'Unprocessable Entity')
- locked → const HttpStatus
-
{status-code: 423 Locked}. @see WebDAV
const HttpStatus(423, Series.clientError, 'Locked')
- failedDependency → const HttpStatus
-
{status-code: 424 Failed Dependency}. @see WebDAV
const HttpStatus(424, Series.clientError, 'Failed Dependency')
- tooEarly → const HttpStatus
-
{status-code: 425 Too Early}. @since 0.0.1.beta @see RFC 8470
const HttpStatus(425, Series.clientError, 'Too Early')
- upgradeRequired → const HttpStatus
-
{status-code: 426 Upgrade Required}. @see Upgrading to TLS Within HTTP/1.1
const HttpStatus(426, Series.clientError, 'Upgrade Required')
- preconditionRequired → const HttpStatus
-
{status-code: 428 Precondition Required}. @see Additional HTTP Status Codes
const HttpStatus(428, Series.clientError, 'Precondition Required')
- tooManyRequests → const HttpStatus
-
{status-code: 429 Too Many Requests}. @see Additional HTTP Status Codes
const HttpStatus(429, Series.clientError, 'Too Many Requests')
- requestHeaderFieldsTooLarge → const HttpStatus
-
{status-code: 431 Request Header Fields Too Large}. @see Additional HTTP Status Codes
const HttpStatus(431, Series.clientError, 'Request Header Fields Too Large')
-
{status-code: 451 Unavailable For Legal Reasons}. @see An HTTP Status Code to Report Legal Obstacles @since 0.0.1.beta
const HttpStatus(451, Series.clientError, 'Unavailable For Legal Reasons')
- internalServerError → const HttpStatus
-
{status-code: 500 Internal Server Error}. @see HTTP/1.1: Semantics and Content, section 6.6.1
const HttpStatus(500, Series.serverError, 'Internal Server Error')
- notImplemented → const HttpStatus
-
{status-code: 501 Not Implemented}. @see HTTP/1.1: Semantics and Content, section 6.6.2
const HttpStatus(501, Series.serverError, 'Not Implemented')
- badGateway → const HttpStatus
-
{status-code: 502 Bad Gateway}. @see HTTP/1.1: Semantics and Content, section 6.6.3
const HttpStatus(502, Series.serverError, 'Bad Gateway')
-
{status-code: 503 Service Unavailable}. @see HTTP/1.1: Semantics and Content, section 6.6.4
const HttpStatus(503, Series.serverError, 'Service Unavailable')
- gatewayTimeout → const HttpStatus
-
{status-code: 504 Gateway Timeout}. @see HTTP/1.1: Semantics and Content, section 6.6.5
const HttpStatus(504, Series.serverError, 'Gateway Timeout')
- httpVersionNotSupported → const HttpStatus
-
{status-code: 505 HTTP Version Not Supported}. @see HTTP/1.1: Semantics and Content, section 6.6.6
const HttpStatus(505, Series.serverError, 'HTTP Version not supported')
- variantAlsoNegotiates → const HttpStatus
-
{status-code: 506 Variant Also Negotiates} @see Transparent Content Negotiation
const HttpStatus(506, Series.serverError, 'Variant Also Negotiates')
- insufficientStorage → const HttpStatus
-
{status-code: 507 Insufficient Storage} @see WebDAV
const HttpStatus(507, Series.serverError, 'Insufficient Storage')
- loopDetected → const HttpStatus
-
{status-code: 508 Loop Detected} @see WebDAV Binding Extensions
const HttpStatus(508, Series.serverError, 'Loop Detected')
- bandwidthLimitExceeded → const HttpStatus
-
{status-code: 509 Bandwidth Limit Exceeded}
const HttpStatus(509, Series.serverError, 'Bandwidth Limit Exceeded')
- notExtended → const HttpStatus
-
{status-code: 510 Not Extended} @see HTTP Extension Framework
const HttpStatus(510, Series.serverError, 'Not Extended')
- networkAuthenticationRequired → const HttpStatus
-
{status-code: 511 Network Authentication Required}. @see Additional HTTP Status Codes
const HttpStatus(511, Series.serverError, 'Network Authentication Required')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - reasonPhrase → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- series → Series
-
final
- value → int
-
The integer value of this status code.
final
Methods
-
is1xxInformational(
) → bool -
Whether this status code is in the Informational class ({@code 1xx}).
@see RFC 2616
override
-
is2xxSuccessful(
) → bool -
Whether this status code is in the Successful class ({@code 2xx}).
@see RFC 2616
override
-
is3xxRedirection(
) → bool -
Whether this status code is in the Redirection class ({@code 3xx}).
@see RFC 2616
override
-
is4xxClientError(
) → bool -
Whether this status code is in the Client Error class ({@code 4xx}).
@see RFC 2616
override
-
is5xxServerError(
) → bool -
Whether this status code is in the Server Error class ({@code 5xx}).
@see RFC 2616
override
-
isError(
) → bool -
Whether this status code is in the Client or Server Error class
@see RFC 2616
@see RFC 2616
({@code 4xx} or {@code 5xx}).
@see #is4xxClientError()
@see #is5xxServerError()
override
-
isSameCodeAs(
HttpStatusCode other) → bool -
Whether this {@code HttpStatusCode} shares the same integer {@link #value() value} as the other status code.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Return a string representation of this status code.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
resolve(
int statusCode) → HttpStatus? - Resolve the given status code to an {status-code: HttpStatus}, if possible. @param statusCode the HTTP status code (potentially non-standard) @return the corresponding {status-code: HttpStatus}, or {status-code: null} if not found @since 0.0.1.beta
-
valueOf(
int statusCode) → HttpStatus -
Return the {status-code: HttpStatus} enum constant with the specified numeric value.
@param statusCode the numeric value of the enum to be returned
@return the enum constant with the specified numeric value
@throws IllegalArgumentException if this enum has no constant for the specified numeric value
override
Constants
-
values
→ const List<
HttpStatus> - A constant List of the values in this enum, in order of their declaration.