Interface ErrorResponseUnauthorized

Shared fields between all error response variants.

Hierarchy

Properties

Properties

message: string

A brief explanation of the error.

null: {}

Type declaration

    status: number

    The HTTP status of the error.

    type: "UNAUTHORIZED"

    The error when the client is missing authorization. This error often occurs when the user doesn't pass in the required authentication or passes in invalid credentials.


    Example

    {
    "type": "UNAUTHORIZED",
    "status": 401,
    "message": "The user is missing authentication or the passed credentials are invalid"
    }