Base representation of an error response containing common fields to all errors.

interface ErrorResponse {
    errors?: ErrorObject[];
    message: string;
    statusCode: number;
}

Hierarchy

Properties

errors?: ErrorObject[]

Errors returned for a request.

A single error response can contain multiple errors if the errors are related to the same HTTP status code such as `400`.
message: string

First error message in the errors array.

statusCode: number

HTTP status code corresponding to the error.

Generated using TypeDoc