Skip to main content
YALG uses HTTP status codes and JSON error bodies for API failures.

Error shape

{
  "statusCode": 400,
  "message": "Bad request",
  "error": "Bad Request"
}
The message field can be a string or an array of validation messages.

Common statuses

StatusMeaning
400Invalid request body, invalid file, invalid state transition, or invalid query
401Missing, malformed, revoked, or invalid API key
403The key owner does not have the required feature access
404Resource not found or not owned by the key owner
410Referenced file is no longer available on disk
429Rate limit or monthly quota exceeded
5xxUnexpected YALG service error

Validation errors

Validation errors normally return 400 Bad Request. Fix the payload before retrying.
{
  "statusCode": 400,
  "message": ["title must be a string", "content should not be empty"],
  "error": "Bad Request"
}

Ownership errors

For security, cross-owner resource access usually returns a not-found response. Treat 404 as either missing or inaccessible.