HttpStatus enum
HTTP-like status codes
Values
- ok → const HttpStatus
-
const HttpStatus(200, 'OK') - created → const HttpStatus
-
const HttpStatus(201, 'Created') - accepted → const HttpStatus
-
const HttpStatus(202, 'Accepted') - noContent → const HttpStatus
-
const HttpStatus(204, 'No Content') - badRequest → const HttpStatus
-
const HttpStatus(400, 'Bad Request') -
const HttpStatus(401, 'Unauthorized') - forbidden → const HttpStatus
-
const HttpStatus(403, 'Forbidden') - notFound → const HttpStatus
-
const HttpStatus(404, 'Not Found') - methodNotAllowed → const HttpStatus
-
const HttpStatus(405, 'Method Not Allowed') - conflict → const HttpStatus
-
const HttpStatus(409, 'Conflict') - internalServerError → const HttpStatus
-
const HttpStatus(500, 'Internal Server Error') - notImplemented → const HttpStatus
-
const HttpStatus(501, 'Not Implemented') -
const HttpStatus(503, 'Service Unavailable')
Properties
- code → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- message → String
-
final
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
-
fromCode(
int code) → HttpStatus
Constants
-
values
→ const List<
HttpStatus> - A constant List of the values in this enum, in order of their declaration.