Errors
File rejected
The `file_rejected` error: HTTP 422 Unprocessable Content.
What was uploaded isn't what its purpose takes, and nothing was kept: reason says why: type (not a PNG, JPEG, WebP or GIF by its first bytes; SVG never is), size (not the length authorized), dimensions (wider or taller than the purpose reads) or unreadable.
| Field | Value |
|---|---|
code | file_rejected |
status | 422 Unprocessable Content |
title | File rejected |
Synq's APIs answer errors with a problem document (RFC 9457, application/problem+json). Its type is the address of this page, and its code is file_rejected. Branch on code, never on title or detail: a code never changes once it ships, while the words may.
{
"type": "…/errors/file_rejected",
"title": "File rejected",
"status": 422,
"code": "file_rejected"
}See every error code.