Skip to main content

validation_failed

The request is invalid

Status: 400 Bad Request

type: https://api.allisai.ai/errors/validation_failed

When it is sent​

A field, parameter, header or multipart part breaks a rule. Carries errors, one entry per problem, each with its locator and field-level code. Correct every entry and send the request again.

Each entry of errors carries a field-level code, listed on Field-level error codes.

Example​

{
"type": "https://api.allisai.ai/errors/validation_failed",
"title": "The request is invalid",
"status": 400,
"detail": "A human-readable explanation of this occurrence. Its wording varies; branch on code, never on detail.",
"code": "validation_failed",
"request_id": "3a9f6c1e2b7d4e5f8a0b1c2d3e4f5a6b",
"errors": [
{
"code": "required",
"pointer": "/name",
"detail": "name is required"
},
{
"code": "unknown_field",
"parameter": "form",
"detail": "form is not a parameter of this operation"
}
]
}

Operations that return it​

Any operation can return this code.