Skip to main content
All errors returned by the Digital Certificate Confirmation API follow a consistent JSON structure that includes the HTTP status code, a machine-readable subCode string, and a human-readable message description.

Error Response Structure

Every error response has the following shape:
{
    "status": "FAILED",
    "message": "Invalid key provided.",
    "data": null,
    "subCode": null
}
  • status — always "FAILED" for error responses.
  • subCode — a stable, uppercase string identifier for the error condition. Use this field in your error handling logic.
  • message — a human-readable explanation suitable for logging or displaying to developers.

HTTP Status Codes

CodeMeaning
200Success — the request completed successfully
401Unauthorized — the X-DigiCert-Secret header is missing or invalid
404Not Found — the requested resource does not exist
422Unprocessable Entity — the request body is well-formed but failed validation rules
500Internal Server Error — an unexpected error occurred on the server

Application Error Codes

CodeHTTP StatusDescription
UNAUTHORIZED401The X-DigiCert-Secret key is missing or invalid
VALIDATION_ERROR422One or more request fields are missing or contain invalid values
Always check the subCode field in your error handling logic rather than branching only on the HTTP status code. Using subCode lets you respond to each failure condition precisely.