HttpStatus enum

Inheritance
Available extensions

Values

continue_ → const HttpStatus
const HttpStatus(100, 'Continue')
switchingProtocols → const HttpStatus
const HttpStatus(101, 'Switching Protocols')
processing → const HttpStatus
const HttpStatus(102, 'Processing')
earlyHints → const HttpStatus
const HttpStatus(103, 'Early Hints')
ok → const HttpStatus
const HttpStatus(200, 'OK')
created → const HttpStatus
const HttpStatus(201, 'Created')
accepted → const HttpStatus
const HttpStatus(202, 'Accepted')
nonAuthoritativeInformation → const HttpStatus
const HttpStatus(203, 'Non-Authoritative Information')
noContent → const HttpStatus
const HttpStatus(204, 'No Content')
resetContent → const HttpStatus
const HttpStatus(205, 'Reset Content')
partialContent → const HttpStatus
const HttpStatus(206, 'Partial Content')
multiStatus → const HttpStatus
const HttpStatus(207, 'Multi-Status')
alreadyReported → const HttpStatus
const HttpStatus(208, 'Already Reported')
imUsed → const HttpStatus
const HttpStatus(226, 'IM Used')
multipleChoices → const HttpStatus
const HttpStatus(300, 'Multiple Choices')
movedPermanently → const HttpStatus
const HttpStatus(301, 'Moved Permanently')
found → const HttpStatus
const HttpStatus(302, 'Found')
seeOther → const HttpStatus
const HttpStatus(303, 'See Other')
notModified → const HttpStatus
const HttpStatus(304, 'Not Modified')
useProxy → const HttpStatus
const HttpStatus(305, 'Use Proxy')
temporaryRedirect → const HttpStatus
const HttpStatus(307, 'Temporary Redirect')
permanentRedirect → const HttpStatus
const HttpStatus(308, 'Permanent Redirect')
badRequest → const HttpStatus
const HttpStatus(400, 'Bad Request')
unauthorized → const HttpStatus
const HttpStatus(401, 'Unauthorized')
paymentRequired → const HttpStatus
const HttpStatus(402, 'Payment Required')
forbidden → const HttpStatus
const HttpStatus(403, 'Forbidden')
notFound → const HttpStatus
const HttpStatus(404, 'Not Found')
methodNotAllowed → const HttpStatus
const HttpStatus(405, 'Method Not Allowed')
notAcceptable → const HttpStatus
const HttpStatus(406, 'Not Acceptable')
proxyAuthenticationRequired → const HttpStatus
const HttpStatus(407, 'Proxy Authentication Required')
requestTimeout → const HttpStatus
const HttpStatus(408, 'Request Timeout')
conflict → const HttpStatus
const HttpStatus(409, 'Conflict')
gone → const HttpStatus
const HttpStatus(410, 'Gone')
lengthRequired → const HttpStatus
const HttpStatus(411, 'Length Required')
preconditionFailed → const HttpStatus
const HttpStatus(412, 'Precondition Failed')
payloadTooLarge → const HttpStatus
const HttpStatus(413, 'Payload Too Large')
uriTooLong → const HttpStatus
const HttpStatus(414, 'URI Too Long')
unsupportedMediaType → const HttpStatus
const HttpStatus(415, 'Unsupported Media Type')
rangeNotSatisfiable → const HttpStatus
const HttpStatus(416, 'Range Not Satisfiable')
expectationFailed → const HttpStatus
const HttpStatus(417, 'Expectation Failed')
misdirectedRequest → const HttpStatus
const HttpStatus(421, 'Misdirected Request')
unprocessableEntity → const HttpStatus
const HttpStatus(422, 'Unprocessable Entity')
locked → const HttpStatus
const HttpStatus(423, 'Locked')
failedDependency → const HttpStatus
const HttpStatus(424, 'Failed Dependency')
tooEarly → const HttpStatus
const HttpStatus(425, 'Too Early')
upgradeRequired → const HttpStatus
const HttpStatus(426, 'Upgrade Required')
preconditionRequired → const HttpStatus
const HttpStatus(428, 'Precondition Required')
tooManyRequests → const HttpStatus
const HttpStatus(429, 'Too Many Requests')
requestHeaderFieldsTooLarge → const HttpStatus
const HttpStatus(431, 'Request Header Fields Too Large')
unavailableForLegalReasons → const HttpStatus
const HttpStatus(451, 'Unavailable For Legal Reasons')
internalServerError → const HttpStatus
const HttpStatus(500, 'Internal Server Error')
notImplemented → const HttpStatus
const HttpStatus(501, 'Not Implemented')
badGateway → const HttpStatus
const HttpStatus(502, 'Bad Gateway')
serviceUnavailable → const HttpStatus
const HttpStatus(503, 'Service Unavailable')
gatewayTimeout → const HttpStatus
const HttpStatus(504, 'Gateway Timeout')
httpVersionNotSupported → const HttpStatus
const HttpStatus(505, 'HTTP Version Not Supported')
variantAlsoNegotiates → const HttpStatus
const HttpStatus(506, 'Variant Also Negotiates')
insufficientStorage → const HttpStatus
const HttpStatus(507, 'Insufficient Storage')
loopDetected → const HttpStatus
const HttpStatus(508, 'Loop Detected')
notExtended → const HttpStatus
const HttpStatus(510, 'Not Extended')
networkAuthenticationRequired → const HttpStatus
const HttpStatus(511, 'Network Authentication Required')

Properties

code int
The http status code.
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
message String
The http status message.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

equalsByCode(int code) bool
Returns true if this code equals to passed code, otherwise false.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

valueOf(int code) HttpStatus
Returns the http status of code.

Constants

values → const List<HttpStatus>
A constant List of the values in this enum, in order of their declaration.