UnrecoverableStatusError class final
Reported on the event stream when the server responds with an HTTP status code that the client will not retry (anything other than 200, 400, 408, 429, or 5xx). After reporting this error the client stops reconnecting until connection desire changes.
Only produced by implementations whose transport can observe HTTP
responses. The browser's native EventSource cannot, so on html
platforms this error is never reported and the client retries every
failure indefinitely.
- Implemented types
Constructors
-
UnrecoverableStatusError(int statusCode, [Map<
String, String> headers = const <String, String>{}]) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
The response headers, when available. May carry service directives
(e.g. protocol fallback instructions) even on error responses.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
The HTTP status code of the response.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited