HttpError class final

An explicit HTTP failure from application code.

Implemented types

Constructors

HttpError(int status, String message, {Headers? headers})
Creates an HTTP failure.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
headers → Headers?
Optional response headers.
final
message → String
Public failure message.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → int
Response status code.
final

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