Nexcar

Errors

Standard error format and a quick guide to the most common codes.

Format#

Every error uses the same JSON envelope:

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "case_id is not a valid UUID",
    "details": { "field": "case_id" }
  }
}
  • code is stable: your system must branch on it.
  • message is human-readable and may change (do not parse it).
  • details is optional and specific to the error.

Common codes#

4xx — client errors#

HTTPcodeMeaningSuggested action
400MISSING_PARAMETERA required field is missingReview the request body
400VALIDATION_ERRORA field has an invalid formatCheck details.field
400DUPLICATE_INTERNAL_IDA case already exists for that internal_idReuse the case_id returned in details
401UNAUTHORIZEDMissing or expired credentialsRefresh your token or check your API key
401INVALID_CREDENTIALSInvalid credentialsMake sure you are using the correct key for the environment
403FORBIDDENNo permission on the resourceContact support to review your access
404RESOURCE_NOT_FOUNDCase or document does not existVerify the ID or whether it was soft-deleted
409CONFLICTThe resource is in a state incompatible with the operationRead the current state and retry
413PAYLOAD_TOO_LARGEFile > 20 MBReduce the file size and retry
415UNSUPPORTED_MEDIA_TYPEMIME not supportedUse a MIME from the catalog
422INVALID_STATUSThe status value is not part of your catalogUse a value from the configured catalog
429RATE_LIMITEDRate limit exceededApply backoff and retry

5xx — server errors#

HTTPcodeMeaning
500INTERNAL_ERRORUnexpected error on Nexcar's side
502UPSTREAM_ERRORAn external service failed (OCR, storage)
503SERVICE_UNAVAILABLEMaintenance in progress

For 5xx, retry with exponential backoff. If it persists for more than 5 minutes, email support@nexcar.mx with the request_id from the response headers.