Overview
The DNSRadar API uses conventional HTTP response codes to indicate the success or failure of an API request. Codes in the2xx range indicate success, codes in the 4xx range indicate an error caused by the provided information, and codes in the 5xx range indicate an error with DNSRadar’s servers.
Error Response Format
When an error occurs, the API returns a JSON response with the following structure:HTTP status code indicating the error type
Human-readable error message describing what went wrong
Field-specific validation errors (present for 400 Bad Request responses)
HTTP Status Codes
Success Codes
| Code | Status | Description |
|---|---|---|
200 | OK | Request succeeded. The response body contains the requested data. |
204 | No Content | Request succeeded with no response body (typically for DELETE operations). |
Client Error Codes
400 - Bad Request
400 - Bad Request
Your request is invalid or malformed. This typically means:How to fix: Check the
- A required parameter is missing
- A parameter has an invalid value
- The request body is not valid JSON
- Validation constraints are not met
errors object in the response for specific field-level validation errors.401 - Unauthorized
401 - Unauthorized
402 - Payment Required
402 - Payment Required
Your request requires a premium subscription or you’ve reached your plan limits.Example:How to fix: Upgrade your plan in the Dashboard or remove existing monitors.
403 - Forbidden
403 - Forbidden
The API key provided is invalid, expired, or has been revoked.Example:How to fix: Verify your API key is correct or generate a new one from the Dashboard.
404 - Not Found
404 - Not Found
The requested resource does not exist or you don’t have access to it.Example:How to fix: Check that the resource UUID is correct and belongs to your organization.
405 - Method Not Allowed
405 - Method Not Allowed
The HTTP method used is not supported for this endpoint.Example:How to fix: Use the correct HTTP method (GET, POST, PATCH, DELETE) as specified in the API documentation.
429 - Too Many Requests
429 - Too Many Requests
You’ve exceeded the rate limit for API requests.Example:How to fix: Wait for the rate limit to reset (check
X-RateLimit-Reset header) or implement exponential backoff. See Rate Limiting for details.Server Error Codes
500 - Internal Server Error
500 - Internal Server Error
An unexpected error occurred on DNSRadar’s servers.Example:How to fix: This is a server-side issue. Retry your request after a brief wait. If the problem persists, contact support@dnsradar.dev.
503 - Service Unavailable
503 - Service Unavailable

