Errors

Happy Uptime returns a consistent JSON error structure with a code, message, and HTTP status.

Errors

Errors return a consistent JSON structure with a code, message, and HTTP status.

json
{ "error": { "code": "not_found", "message": "Monitor not found", "status": 404 } }

HTTP status codes

CodeMeaning
200Success
201Created
400Validation error
401Unauthorized — missing or invalid API key
403Forbidden — insufficient scope
404Not found
409Conflict — duplicate resource
429Rate limit exceeded

Inspect error.code for programmatic handling — it's stable across releases, while message may change. Common codes include unauthorized, forbidden, not_found, validation_failed, duplicate, and rate_limited.

Ask a question... ⌘I