Skip to content

Errors

The API uses standard HTTP status codes. A 2xx means success; anything else carries a JSON body describing what went wrong.

{
"errorCode": "UNAUTHORIZED",
"message": "Missing or invalid token"
}
  • errorCode is a stable, machine-readable string you can branch on.
  • message is a human-readable description, useful for logs and debugging.
StatusMeaningWhat to do
200SuccessRead the response body.
400Bad requestA parameter is missing or malformed. Check the message.
401UnauthorizedThe token is missing, malformed, expired, or revoked. Check the header and the token.
403ForbiddenThe token is valid but not allowed here, for example the organization’s plan does not include the API, or the API is turned off.
404Not foundThe id does not exist, or it is outside what you can see. The two are deliberately indistinguishable.
429Too many requestsYou hit a rate limit. Wait for the Retry-After header.
5xxServer errorSomething went wrong on our side. Retry with backoff; if it persists, contact support.

When you request something you are not allowed to see, the API returns 404 Not Found rather than 403 Forbidden. This is intentional: revealing that a resource exists but is off-limits would itself leak information. If you expected a resource and got a 404, confirm that the token’s owner can actually see it in the Mereon app.