Skip to main content

Overview

The Cometly API uses conventional HTTP response codes to indicate the success or failure of an API request. Codes in the 2xx range indicate success, and codes in the 4xx range indicate an error with the request.

HTTP Status Code Summary

Status CodeDescription
200OK - The request was successful
201Created - The resource was successfully created
202Accepted - The request has been queued for processing successfully
401Unauthenticated - Authentication failed or wasn’t provided
403Forbidden - The request is understood but refused
404Not Found - The requested resource does not exist
422Unprocessable Entity - Request validation failed or missing required parameters

Error Response Structure

All error responses follow a consistent structure:
{
  "message": "Human-readable error message"
}
FieldTypeDescription
messagestringHuman-readable error description