UnauthorizedException class

The request was not authenticated, or the credential it carried is no good.

Signing in again is the answer. Contrast ForbiddenException, where the session is fine and signing in again changes nothing.

Inheritance

Constructors

UnauthorizedException(String message, {int? status})

Properties

body String?
The response body exactly as it arrived, when there was one.
finalinherited
code String?
The API's machine-readable reason, when it sent one.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
message String
The response body, or a description of the failure when there was no body.
finalinherited
prefix String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status int?
The HTTP status the API answered with, when the failure came from a response at all.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
The failure, without the response body.
inherited

Operators

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