Skip to main content

AuthErrorResponse

Error body of a status-coded response, {code, message, field?}. Every error schema that carries these keys uses them as follows. code is the HTTP status, an integer, never on a 200 body. message is text for display. field is the JSON name of the request property at fault, present only when known. reason, where a schema declares it, is a stable machine token a client may branch on.

codeinteger<uint32>required

The HTTP status.

messagestringrequired

Text for display.

fieldstring

JSON name of the request property at fault, when known.

AuthErrorResponse
{
"code": 0,
"message": "string",
"field": "string"
}