Skip to main content

Error Handling

The API uses standard HTTP status codes and returns consistent JSON error objects.

Error Response Format

All errors return a JSON object with an error field:
Validation errors include a details object mapping field names to arrays of error messages:

Status Codes

A 404 response does not distinguish between “resource does not exist” and “resource belongs to another user” — this is intentional to prevent enumeration attacks.