Skip to main content

API Errors

All API errors follow the RFC 7807 Problem Details format.
Every error response contains a machine-readable type and code, along with optional human-readable fields.


Problem Details Structure

Problem/Error Details
{
"type": "https://example.com/probs/ERROR_CODE",
"code": "ERROR_CODE",
"title": "Short human-readable summary of the problem",
"status": 400,
"detail": "More detailed explanation of the error",
"instance": "/path/of/the/request"
}

HTTP Client Error Status Codes

Status CodeDescriptionSummary
400Bad RequestThe request was unacceptable or malformed, often due to missing a required parameter.
401UnauthorisedThe request is not from an authenticated source.
403ForbiddenThe request is authenticated but does not have permissions to perform the request.
404Not FoundThe requested resource doesn’t exist.

HTTP Server Error Status Codes

Status CodeDescriptionSummary
500Internal Server ErrorThe Apicunia server has encountered a situation it does not know how to handle.
502Bad GatewayWhilst the Apicunia server was working as a gateway to get a response, got an invalid response.
503ForbiddenThe Apicunia server is not able to handle the request, perhaps down for maintenance or overloaded.
504Not FoundThe Apicunia server was working as a gateway to get a response and cannont get a response within the alloted time.

Error Codes

CodeDescription
FORMAT_ERRORIncorrect data format has been provided, not compliant with the expected specifications (e.g., invalid JSON format, missing or incorrectly formatted fields).
CLIENT_INVALIDThe client is not recognised or is invalid (an attempt to access resources by an unauthorised client).
CLIENT_INCONSISTENTThe client information provided in the certificate and/or in the request message body is not consistent with related directory information.
TIMESTAMP_INVALIDThe timestamp provided in the request is invalid (incorrect format, value in the future, or if it exceeds the allowed validity period by the system).