Skip to main content

Errors and Status Codes

Pingr AI uses conventional HTTP response codes to indicate the success or failure of an API request. In general:
  • Codes in the 2xx range indicate success.
  • Codes in the 4xx range indicate an error that failed given the information provided (e.g. missing required field or authentication failure).
  • Codes in the 5xx range indicate an error with Pingr AI servers.

Error Response Structure

All error responses return a standardized JSON object:

Error Object Attributes

  • code: A machine-readable string indicating the exact error category.
  • message: A human-readable description explaining why the error occurred and how to fix it.
  • type: Broad error classification (e.g. invalid_request_error, authentication_error, rate_limit_error, api_error).
  • param: The specific request parameter that triggered the error (if applicable).
  • doc_url: Direct hyperlink to resolution documentation.

HTTP Status Codes


Error Code Reference