2xx range indicate success, codes in the 4xx range indicate a problem with the request (a missing field, an invalid API key, a resource that doesn’t exist), and codes in the 5xx range indicate a problem with Warrn’s servers.
Every error response includes a human-readable message describing what went wrong, so you can surface useful diagnostics in client integrations and CI logs without having to map status codes by hand.
Error Response Format
When a request fails, the API returns a JSON object with an error message:requestId for tracing:
HTTP Status Codes
| Code | Meaning |
|---|---|
200 | Request succeeded |
201 | Resource created |
400 | Bad request — invalid JSON, missing required fields, or integration disabled |
401 | Unauthorized — missing or invalid API key |
403 | Forbidden — API key lacks required permission, or IP not in allowlist |
404 | Resource does not exist — alert, team, or service could not be located |
422 | Validation error — field value out of range (e.g. invalid severity) |
429 | Rate limit exceeded — wait and retry |
500 | Internal server error — retry with exponential backoff and contact support if the problem persists |
Common Errors
Invalid API key
Authorization: Bearer warrn_xxx. The key must start with warrn_.
Permission denied
read permission but the endpoint requires write. Create a new key with the correct permission level.
Invalid severity
severity field must be one of: low, medium, high, critical.