Interface ErrorResponseServer

Shared fields between all error response variants.

Hierarchy

Properties

Properties

message: string

A brief explanation of the error.

null: {
    info: string;
}

Type declaration

  • info: string

    Extra information about what went wrong.

status: number

The HTTP status of the error.

type: "SERVER"

The error when the server fails to process a request.

Getting this error means that it's the server's fault and not the client that the request failed.


Example

{
"type": "SERVER",
"status": 500,
"message": "Server encountered an unexpected error",
"info": "Server got stabbed 28 times"
}