Errors
The CAD ROOMS API uses standard HTTP status codes to indicate the outcome of a request.
- 2xx Success: The request was processed successfully.
- 3xx Redirect: The requested resource is available at another URL.
- 4xx Client error: The request failed due to a client-side issue, such as a missing parameter or an invalid API key.
- 5xx Server error: An unexpected error occurred on the CAD ROOMS server.
When a request fails, the API returns a structured error response containing a stable error code, a human-readable message, and a request ID for troubleshooting.
HTTP status codes
200OK: The request succeeded.201Created: A new resource was created successfully.204No Content: The request succeeded without returning a response body, typically after deleting a resource.302Found: The requested download is available at the URL specified in theLocationheader.400Bad Request: The request contains invalid or missing parameters.401Unauthorized: The API key or session token is missing, invalid, expired, or revoked.403Forbidden: The workspace plan does not support the requested feature.404Not Found: The requested resource does not exist or is not accessible to your account.429Too Many Requests: The API rate limit has been exceeded. Wait for the duration specified in theRetry-Afterheader before retrying.500Internal Server Error: An unexpected server error occurred. Retry the request later.
Error codes
All endpoints can return the general error codes listed below. Endpoints may also return more specific error codes for particular business conditions. These codes are documented in the corresponding endpoint reference.
VALIDATION_FAILED(400): The request contains invalid or missing parameters. Seeerror.details.UNAUTHENTICATED(401): The API key or session token is missing, invalid, expired, or revoked.PLAN_REQUIRED(403): The workspace plan does not support the requested feature.NOT_FOUND(404): The requested resource does not exist or is not accessible to your account.RATE_LIMITED(429): The API rate limit has been exceeded. Wait for the duration specified in theRetry-Afterheader before retrying.INTERNAL_ERROR(500): An unexpected server error occurred. Retry the request later.
Recommendation: Use the code field rather than relying solely on the HTTP status code when handling specific error conditions.
Error response format
All API errors return a JSON object containing an error field.
Example response:
Response fields
error(object): Contains information about the failed request.error.code(string): A stable error identifier for programmatic error handling. See Error codes.error.message(string): A human-readable description of the error. This may change over time.error.requestId(string): A unique request identifier used for troubleshooting. Include this value when contacting CAD ROOMS support.error.details(array): Optional. Contains field-level validation errors for400 Bad Requestresponses.
Request IDs
Every API response, including successful responses, includes a Request-Id header.
For error responses, the same identifier is also available in error.requestId.
Include this identifier when contacting CAD ROOMS support to help locate the request during troubleshooting.
Important: Error messages may change without an API version change. Use error.code rather than error.message in your application logic.
Validation errors
When a request contains invalid or missing parameters, the API returns:
- HTTP status:
400 Bad Request - Error code:
VALIDATION_FAILED
Validation errors include a details array containing information about the fields that failed validation.
Each entry contains:
field(string): The name of the request field that failed validation.message(string): A description of the validation issue.
Example response:
Use the details array to identify and correct invalid fields before retrying the request.