The HTTP status codes Shape returns, what each one means, and how to handle errors.
Shape uses standard HTTP status codes. A 2xx means the request succeeded, a 4xx means something in the request needs to change, and a 5xx means something went wrong on Shape’s side. On any error, read the response body for a message that explains what went wrong.
Reference
| Code | Meaning |
|---|---|
| 200 OK | The request was received, understood, and processed. |
| 400 Bad Request | A required field or parameter is missing, a value is invalid, or the combination of fields isn’t valid. Check your request body and parameters. |
| 401 Unauthorized | Invalid credentials — usually an incorrect API Authorization Key. A missing key returns 404; see below. |
| 404 Not Found | The resource doesn’t exist — for example, a record ID that isn’t in your account — or the Authorization header is missing. |
| 409 Conflict | The request conflicts with an existing resource — for example, creating a calendar event at a time that’s already taken. |
| 429 Too Many Requests | You’ve exceeded a rate limit. Back off and retry — see Rate Limits. |
| 5xx Server Error | Something went wrong on Shape’s side. Retry after a short wait, increasing the wait each time. |
Authentication errors
| Situation | Status | Response |
|---|---|---|
No Authorization header |
404 | {"message": "Invalid request ERR-OA506"} |
| API key not recognized | 401 | {"message": "Bad Authorization Key ERR-OA507"} |
| API key’s system not found | 401 | {"message": "Invalid request, company not found ERR-OA508"} |
| System not active | 401 | {"message": "Company is not active, contact support ERR-OA509"} |
| Daily request limit reached | 429 | {"message": "Open API request limit of … has been reached. Please contact support to raise your limit ERR-OA510"} |
Other errors
| Situation | Status | Response |
|---|---|---|
| Identical Add Records request within 15 minutes | 400 | {"message": "Duplicate attempts detected with same record data within 15 min"} |
| Over the per-minute rate limit, or the daily limit | 429 | See Rate Limits. |
| Delete Records by Loan GUID from an address not on the allowlist | 400 |
Error response body
Errors return a JSON body with a message that explains what went wrong:
{
"message": "Bad Authorization Key ERR-OA507"
}
Branch on the HTTP status code first, then surface
message for debugging. Don’t parse success or failure out of the message text — it’s meant for humans and can change between releases.Retrying requests
Retry 5xx errors after a short wait, increasing the wait each time. Before retrying Add Records, search for the record first: Shape rejects an identical Add Records request for 15 minutes. If errors continue, contact Shape Support.