Interface IErrorResponse

Interface representing an error response.

IErrorResponse Interface representing an error response.

const errorResponse: IErrorResponse =
{
"detail": "Given token not valid for any token type",
"code": "token_not_valid",
"messages": [
{
"token_class": "AccessToken",
"token_type": "access",
"message": "Token is invalid or expired"
}
]
};
interface IErrorResponse {
    code?: string;
    detail: string;
    messages?: {
        [key: string]: string;
    }[];
}

Properties

code?: string

Optional error code.

detail: string

Detailed message about the error.

messages?: {
    [key: string]: string;
}[]

Optional array of messages providing additional information about the error. Each message is represented as a key-value pair.