HttpStatus class Null safety
HTTP status codes. Exported in dart:io and dart:html.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- ACCEPTED → const int
-
Deprecated("Use accepted instead")">@Deprecated("Use accepted instead")
accepted - accepted → const int
-
202 - alreadyReported → const int
-
@Since("2.1")
208 - BAD_GATEWAY → const int
-
Deprecated("Use badGateway instead")">@Deprecated("Use badGateway instead")
badGateway - BAD_REQUEST → const int
-
Deprecated("Use badRequest instead")">@Deprecated("Use badRequest instead")
badRequest - badGateway → const int
-
502 - badRequest → const int
-
400 - clientClosedRequest → const int
-
@Since("2.1")
499 - CONFLICT → const int
-
Deprecated("Use conflict instead")">@Deprecated("Use conflict instead")
conflict - conflict → const int
-
409 - connectionClosedWithoutResponse → const int
-
@Since("2.1")
444 - CONTINUE → const int
-
Deprecated("Use continue_ instead")">@Deprecated("Use continue_ instead")
continue_ - continue_ → const int
-
100 - CREATED → const int
-
Deprecated("Use created instead")">@Deprecated("Use created instead")
created - created → const int
-
201 - EXPECTATION_FAILED → const int
-
Deprecated("Use expectationFailed instead")">@Deprecated("Use expectationFailed instead")
expectationFailed - expectationFailed → const int
-
417 - failedDependency → const int
-
@Since("2.1")
424 - FORBIDDEN → const int
-
Deprecated("Use forbidden instead")">@Deprecated("Use forbidden instead")
forbidden - forbidden → const int
-
403 - FOUND → const int
-
Deprecated("Use found instead")">@Deprecated("Use found instead")
found - found → const int
-
302 - GATEWAY_TIMEOUT → const int
-
Deprecated("Use gatewayTimeout instead")">@Deprecated("Use gatewayTimeout instead")
gatewayTimeout - gatewayTimeout → const int
-
504 - GONE → const int
-
Deprecated("Use gone instead")">@Deprecated("Use gone instead")
gone - gone → const int
-
410 - HTTP_VERSION_NOT_SUPPORTED → const int
-
Deprecated("Use httpVersionNotSupported instead")">@Deprecated("Use httpVersionNotSupported instead")
httpVersionNotSupported - httpVersionNotSupported → const int
-
505 - imUsed → const int
-
@Since("2.1")
226 - insufficientStorage → const int
-
@Since("2.1")
507 - INTERNAL_SERVER_ERROR → const int
-
Deprecated("Use internalServerError instead")">@Deprecated("Use internalServerError instead")
internalServerError - internalServerError → const int
-
500 - LENGTH_REQUIRED → const int
-
Deprecated("Use lengthRequired instead")">@Deprecated("Use lengthRequired instead")
lengthRequired - lengthRequired → const int
-
411 - locked → const int
-
@Since("2.1")
423 - loopDetected → const int
-
@Since("2.1")
508 - METHOD_NOT_ALLOWED → const int
-
Deprecated("Use methodNotAllowed instead")">@Deprecated("Use methodNotAllowed instead")
methodNotAllowed - methodNotAllowed → const int
-
405 - misdirectedRequest → const int
-
@Since("2.1")
421 - MOVED_PERMANENTLY → const int
-
Deprecated("Use movedPermanently instead")">@Deprecated("Use movedPermanently instead")
movedPermanently - MOVED_TEMPORARILY → const int
-
Deprecated("Use movedTemporarily instead")">@Deprecated("Use movedTemporarily instead")
movedTemporarily - movedPermanently → const int
-
301 - movedTemporarily → const int
-
302 - MULTIPLE_CHOICES → const int
-
Deprecated("Use multipleChoices instead")">@Deprecated("Use multipleChoices instead")
multipleChoices - multipleChoices → const int
-
300 - multiStatus → const int
-
@Since("2.1")
207 - NETWORK_CONNECT_TIMEOUT_ERROR → const int
-
Deprecated("Use networkConnectTimeoutError instead")">@Deprecated("Use networkConnectTimeoutError instead")
networkConnectTimeoutError - networkAuthenticationRequired → const int
-
@Since("2.1")
511 - networkConnectTimeoutError → const int
-
599 - NO_CONTENT → const int
-
Deprecated("Use noContent instead")">@Deprecated("Use noContent instead")
noContent - noContent → const int
-
204 - NON_AUTHORITATIVE_INFORMATION → const int
-
Deprecated("Use nonAuthoritativeInformation instead")">@Deprecated("Use nonAuthoritativeInformation instead")
nonAuthoritativeInformation - nonAuthoritativeInformation → const int
-
203 - NOT_ACCEPTABLE → const int
-
Deprecated("Use notAcceptable instead")">@Deprecated("Use notAcceptable instead")
notAcceptable - NOT_FOUND → const int
-
Deprecated("Use notFound instead")">@Deprecated("Use notFound instead")
notFound - NOT_IMPLEMENTED → const int
-
Deprecated("Use notImplemented instead")">@Deprecated("Use notImplemented instead")
notImplemented - NOT_MODIFIED → const int
-
Deprecated("Use notModified instead")">@Deprecated("Use notModified instead")
notModified - notAcceptable → const int
-
406 - notExtended → const int
-
@Since("2.1")
510 - notFound → const int
-
404 - notImplemented → const int
-
501 - notModified → const int
-
304 - OK → const int
-
Deprecated("Use ok instead")">@Deprecated("Use ok instead")
ok - ok → const int
-
200 - PARTIAL_CONTENT → const int
-
Deprecated("Use partialContent instead")">@Deprecated("Use partialContent instead")
partialContent - partialContent → const int
-
206 - PAYMENT_REQUIRED → const int
-
Deprecated("Use paymentRequired instead")">@Deprecated("Use paymentRequired instead")
paymentRequired - paymentRequired → const int
-
402 - permanentRedirect → const int
-
@Since("2.1")
308 - PRECONDITION_FAILED → const int
-
Deprecated("Use preconditionFailed instead")">@Deprecated("Use preconditionFailed instead")
preconditionFailed - preconditionFailed → const int
-
412 - preconditionRequired → const int
-
@Since("2.1")
428 - processing → const int
-
@Since("2.1")
102 - PROXY_AUTHENTICATION_REQUIRED → const int
-
Deprecated("Use proxyAuthenticationRequired instead")">@Deprecated("Use proxyAuthenticationRequired instead")
proxyAuthenticationRequired - proxyAuthenticationRequired → const int
-
407 - REQUEST_ENTITY_TOO_LARGE → const int
-
Deprecated("Use requestEntityTooLarge instead")">@Deprecated("Use requestEntityTooLarge instead")
requestEntityTooLarge - REQUEST_TIMEOUT → const int
-
Deprecated("Use requestTimeout instead")">@Deprecated("Use requestTimeout instead")
requestTimeout - REQUEST_URI_TOO_LONG → const int
-
Deprecated("Use requestUriTooLong instead")">@Deprecated("Use requestUriTooLong instead")
requestUriTooLong - REQUESTED_RANGE_NOT_SATISFIABLE → const int
-
Deprecated("Use requestedRangeNotSatisfiable instead")">@Deprecated("Use requestedRangeNotSatisfiable instead")
requestedRangeNotSatisfiable - requestedRangeNotSatisfiable → const int
-
416 - requestEntityTooLarge → const int
-
413 - requestHeaderFieldsTooLarge → const int
-
@Since("2.1")
431 - requestTimeout → const int
-
408 - requestUriTooLong → const int
-
414 - RESET_CONTENT → const int
-
Deprecated("Use resetContent instead")">@Deprecated("Use resetContent instead")
resetContent - resetContent → const int
-
205 - SEE_OTHER → const int
-
Deprecated("Use seeOther instead")">@Deprecated("Use seeOther instead")
seeOther - seeOther → const int
-
303 - SERVICE_UNAVAILABLE → const int
-
Deprecated("Use serviceUnavailable instead")">@Deprecated("Use serviceUnavailable instead")
serviceUnavailable -
503 - SWITCHING_PROTOCOLS → const int
-
Deprecated("Use switchingProtocols instead")">@Deprecated("Use switchingProtocols instead")
switchingProtocols - switchingProtocols → const int
-
101 - TEMPORARY_REDIRECT → const int
-
Deprecated("Use temporaryRedirect instead")">@Deprecated("Use temporaryRedirect instead")
temporaryRedirect - temporaryRedirect → const int
-
307 - tooManyRequests → const int
-
@Since("2.1")
429 - UNAUTHORIZED → const int
-
Deprecated("Use unauthorized instead")">@Deprecated("Use unauthorized instead")
unauthorized -
401 -
@Since("2.1")
451 - unprocessableEntity → const int
-
@Since("2.1")
422 - UNSUPPORTED_MEDIA_TYPE → const int
-
Deprecated("Use unsupportedMediaType instead")">@Deprecated("Use unsupportedMediaType instead")
unsupportedMediaType - unsupportedMediaType → const int
-
415 - UPGRADE_REQUIRED → const int
-
Deprecated("Use upgradeRequired instead")">@Deprecated("Use upgradeRequired instead")
upgradeRequired - upgradeRequired → const int
-
426 - USE_PROXY → const int
-
Deprecated("Use useProxy instead")">@Deprecated("Use useProxy instead")
useProxy - useProxy → const int
-
305 - variantAlsoNegotiates → const int
-
@Since("2.1")
506