Interface Validation

The error when a request a client sends is incorrect and fails validation.


Example

{
"type": "VALIDATION",
"status": 422,
"message": "Invalid request",
"value_name": "author",
"info": "author name is a bit too cringe"
}

Hierarchy

Properties

info: string

Extra information about what went wrong.

message: string

A brief explanation of the error.

status: number

The HTTP status of the error.

type: "VALIDATION"
value_name: string

The name of the value that failed validation.