HttpStatusCode class abstract

Constants for HTTP status codes.

Constructors

HttpStatusCode()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

isSuccess(int code) bool
Returns true if code is in the range 200-299, false otherwise.

Constants

badRequest → const int
conflict → const int
created → const int
failedDependency → const int
forbidden → const int
noContent → const int
notFound → const int
notModified → const int
ok → const int
preconditionFailure → const int
serverError → const int
serviceUnavailable → const int
tooManyRequests → const int
unauthorized → const int