Error Responses
The RedBook Direct API uses conventional HTTP status codes to signal error conditions. The following table outlines the most common scenarios and the corresponding responses you should anticipate.
| HTTP Status | Scenario | Notes |
|---|---|---|
401 Unauthorized |
The request is missing an Access Token, or the supplied token is invalid or expired. | Include a valid Bearer token in the Authorization header and retry. |
403 Forbidden |
The authenticated user does not have permission to access the requested resource. | Contact the RedBook team to ensure your account has the required access. |
403 Forbidden |
Your client exceeds the configured rate limit. CloudFront returns an HTML error page. | Wait until the rate-limit window resets before retrying. |
404 Not Found |
The requested resource cannot be located (e.g. a non-existent identifier, or an identifier containing unsupported characters). | Response body is JSON describing the missing resource. |
Tip
Unless otherwise noted, error responses are returned in the standard RedBook Direct API error format:
{
"Type": "NotFoundException",
"Reason": "notfound",
"TargetName": "Make",
"Message": "Make xxx not found"
}
Use these status codes to detect and handle error conditions programmatically, applying retry or remediation logic as appropriate.