Error Handling
All error responses use JSON with an "error" or "message" field and the appropriate HTTP status code.
Common HTTP Status Codes
Status Code
Meaning
400
Bad Request – missing or malformed input.
401
Unauthorized – missing or invalid API key.
402
Payment Required – insufficient credits.
404
Not Found – resource or endpoint does not exist.
422
Unprocessable Entity – validation failed.
500
Internal Server Error – unexpected server exception.
Error Response Format
{
"error": "Descriptive error message here."
}
Or for validation failures:
{
"status": "unprocessable",
"message": "Unable to extract name or domain.",
"profile": { /* partial profile data */ }
}
Examples
400 Bad Request
401 Unauthorized
402 Payment Required
422 Unprocessable Entity
500 Internal Server Error
Last updated