W3cubDocs

/Dart 2

HttpStatus class

HTTP status codes. Exported in dart:io and dart:html.

Constructors

HttpStatus()

Properties

hashCodeint
read-only, inherited
The hash code for this object. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
toString() → String
inherited
Returns a string representation of this object.

Operators

operator ==(dynamic other) → bool
inherited
The equality operator. [...]

Constants

ACCEPTED → const int
@Deprecated("Use accepted instead")
accepted
accepted → const int
202
alreadyReported → const int
@Since("2.1")
208
BAD_GATEWAY → const int
@Deprecated("Use badGateway instead")
badGateway
BAD_REQUEST → const int
@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")
conflict
conflict → const int
409
connectionClosedWithoutResponse → const int
@Since("2.1")
444
CONTINUE → const int
@Deprecated("Use continue_ instead")
continue_
continue_ → const int
100
CREATED → const int
@Deprecated("Use created instead")
created
created → const int
201
EXPECTATION_FAILED → const int
@Deprecated("Use expectationFailed instead")
expectationFailed
expectationFailed → const int
417
failedDependency → const int
@Since("2.1")
424
FORBIDDEN → const int
@Deprecated("Use forbidden instead")
forbidden
forbidden → const int
403
FOUND → const int
@Deprecated("Use found instead")
found
found → const int
302
GATEWAY_TIMEOUT → const int
@Deprecated("Use gatewayTimeout instead")
gatewayTimeout
gatewayTimeout → const int
504
GONE → const int
@Deprecated("Use gone instead")
gone
gone → const int
410
HTTP_VERSION_NOT_SUPPORTED → const int
@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")
internalServerError
internalServerError → const int
500
LENGTH_REQUIRED → const int
@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")
methodNotAllowed
methodNotAllowed → const int
405
misdirectedRequest → const int
@Since("2.1")
421
MOVED_PERMANENTLY → const int
@Deprecated("Use movedPermanently instead")
movedPermanently
MOVED_TEMPORARILY → const int
@Deprecated("Use movedTemporarily instead")
movedTemporarily
movedPermanently → const int
301
movedTemporarily → const int
302
MULTIPLE_CHOICES → const int
@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")
networkConnectTimeoutError
networkAuthenticationRequired → const int
@Since("2.1")
511
networkConnectTimeoutError → const int
599
NO_CONTENT → const int
@Deprecated("Use noContent instead")
noContent
noContent → const int
204
NON_AUTHORITATIVE_INFORMATION → const int
@Deprecated("Use nonAuthoritativeInformation instead")
nonAuthoritativeInformation
nonAuthoritativeInformation → const int
203
NOT_ACCEPTABLE → const int
@Deprecated("Use notAcceptable instead")
notAcceptable
NOT_FOUND → const int
@Deprecated("Use notFound instead")
notFound
NOT_IMPLEMENTED → const int
@Deprecated("Use notImplemented instead")
notImplemented
NOT_MODIFIED → const int
@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")
ok
ok → const int
200
PARTIAL_CONTENT → const int
@Deprecated("Use partialContent instead")
partialContent
partialContent → const int
206
PAYMENT_REQUIRED → const int
@Deprecated("Use paymentRequired instead")
paymentRequired
paymentRequired → const int
402
permanentRedirect → const int
@Since("2.1")
308
PRECONDITION_FAILED → const int
@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")
proxyAuthenticationRequired
proxyAuthenticationRequired → const int
407
REQUEST_ENTITY_TOO_LARGE → const int
@Deprecated("Use requestEntityTooLarge instead")
requestEntityTooLarge
REQUEST_TIMEOUT → const int
@Deprecated("Use requestTimeout instead")
requestTimeout
REQUEST_URI_TOO_LONG → const int
@Deprecated("Use requestUriTooLong instead")
requestUriTooLong
REQUESTED_RANGE_NOT_SATISFIABLE → const int
@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")
resetContent
resetContent → const int
205
SEE_OTHER → const int
@Deprecated("Use seeOther instead")
seeOther
seeOther → const int
303
SERVICE_UNAVAILABLE → const int
@Deprecated("Use serviceUnavailable instead")
serviceUnavailable
serviceUnavailable → const int
503
SWITCHING_PROTOCOLS → const int
@Deprecated("Use switchingProtocols instead")
switchingProtocols
switchingProtocols → const int
101
TEMPORARY_REDIRECT → const int
@Deprecated("Use temporaryRedirect instead")
temporaryRedirect
temporaryRedirect → const int
307
tooManyRequests → const int
@Since("2.1")
429
UNAUTHORIZED → const int
@Deprecated("Use unauthorized instead")
unauthorized
unauthorized → const int
401
unavailableForLegalReasons → const int
@Since("2.1")
451
unprocessableEntity → const int
@Since("2.1")
422
UNSUPPORTED_MEDIA_TYPE → const int
@Deprecated("Use unsupportedMediaType instead")
unsupportedMediaType
unsupportedMediaType → const int
415
UPGRADE_REQUIRED → const int
@Deprecated("Use upgradeRequired instead")
upgradeRequired
upgradeRequired → const int
426
USE_PROXY → const int
@Deprecated("Use useProxy instead")
useProxy
useProxy → const int
305
variantAlsoNegotiates → const int
@Since("2.1")
506

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-io/HttpStatus-class.html