Errors
The Gomry API uses standard HTTP status codes to indicate the outcome of a request. Errors return a JSON body with anerror field describing the issue.
Error Response Format
Status Codes
| Code | Meaning | When It Happens |
|---|---|---|
200 | OK | Request succeeded |
400 | Bad Request | Invalid query parameters or request body |
401 | Unauthorized | Missing or invalid API key |
404 | Not Found | Resource doesn’t exist or doesn’t belong to your organization |
429 | Too Many Requests | Rate limit exceeded — slow down and retry |
500 | Internal Server Error | Something went wrong on our end |
Handling Errors
A
404 response does not confirm the resource doesn’t exist — it may belong to a different organization. The API intentionally returns 404 instead of 403 to avoid leaking information about other organizations’ data.