Skip to main content

Error Handling

The Vremly API uses standard HTTP status codes and returns structured error responses.

HTTP Status Codes

CodeMeaning
200Success
201Resource created
400Bad request — invalid parameters or body
401Unauthorized — missing or invalid JWT token
403Forbidden — not a member of the specified organization
404Not found — resource does not exist
409Conflict — resource already exists (e.g., duplicate email)
429Too many requests — rate limit exceeded
500Internal server error

Error Response Format

Error responses include a message field describing what went wrong:

{
"statusCode": 401,
"message": "Missing or invalid JWT token",
"error": "Unauthorized"
}

Some validation errors include an array of specific issues:

{
"statusCode": 400,
"message": [
"email must be an email",
"password must be at least 8 characters"
],
"error": "Bad Request"
}

Common Error Patterns

Missing Authorization Header

401 Unauthorized

Include Authorization: Bearer <token> on all authenticated endpoints.

Missing Organization Context

403 Forbidden — Not a member of the specified organization

Include x-org-id: <organization-id> on org-scoped endpoints. See Organization Context.

Resource Not Found

404 Not Found

The resource ID doesn't exist or you don't have access to it within the current organization.

Rate Limited

429 Too Many Requests

You've exceeded the rate limit. Wait and retry. See Rate Limits.