HttpResponseClass enum
An HTTP response status class.
Naming by meaning rather than digit keeps the wire self-describing, and
byName serialization keeps the order stable if a class is ever added.
- Inheritance
- Implemented types
- Available extensions
Values
- informational → const HttpResponseClass
-
1xx — informational.
- successful → const HttpResponseClass
-
2xx — successful.
- redirection → const HttpResponseClass
-
3xx — redirection.
- clientError → const HttpResponseClass
-
4xx — client error.
- serverError → const HttpResponseClass
-
5xx — server error.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- 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
-
toJson(
) → String -
Returns a serialized JSON structure of the model which also includes
fields used by the database.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
String name) → HttpResponseClass
Constants
-
values
→ const List<
HttpResponseClass> - A constant List of the values in this enum, in order of their declaration.