ErrorResponse class
Types a response as failure (typical status code range: 400-599)
Constructors
-
ErrorResponse({required Uint8List body, required ContentType contentType, required int statusCode, required Map<
String, String> headers}) -
const
Properties
- asJsonArray → List
-
no setterinherited
- body → Uint8List
-
finalinherited
- contentType → ContentType
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
finalinherited
-
json
→ Map<
String, dynamic> -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
finalinherited
- toHttpError → HttpError
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
typedAsJsonArray<
T> () → List< T> -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited