HTTP 400
validation_failed — Shorty API error
Validation failed (HTTP 400): when the Shorty API returns the validation_failed error, why, and how to fix it.
| Code | HTTP status | Type URI |
|---|---|---|
validation_failed | 400 | https://aishorty.com/docs/api/errors/validation_failed |
When it happens
The request body or parameters failed schema validation. The errors array lists each offending field with a JSON pointer.
Example response
{
"type": "https://aishorty.com/docs/api/errors/validation_failed",
"title": "Validation failed",
"status": 400,
"detail": "One or more fields are invalid.",
"instance": "urn:request:req_01J9Z8ABCDEFGH0123456789",
"code": "validation_failed",
"request_id": "req_01J9Z8ABCDEFGH0123456789"
}How to fix it
Fix the fields named in errors[].pointer. Validate against the operation schema before sending; the SDK gives you typed request bodies.
Related errors
- request_too_large
Request too large (HTTP 413)