HttpFailureResponseModel class final

Stores HTTP response information related to a failure.

This model is used to preserve response context when an HTTP-related operation fails. It can be attached to a failure object or used directly when creating diagnostic logs.

The model contains optional response status information, headers, and response body.

Constructors

HttpFailureResponseModel({int? statusCode, String? statusMessage, Map<String, Object?>? headers, Object? body})
Creates an HTTP response failure context model.
const

Properties

body → Object?
Optional HTTP response body.
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, Object?>?
Optional HTTP response headers.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statusCode → int?
The HTTP status code returned by the server.
final
statusMessage → String?
The HTTP status message returned by the server.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toLogString() → String
Converts the stored HTTP response information into a readable log string.
toString() → String
A string representation of this object.
inherited

Operators

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