Error Codes

Complete reference of 44 error codes across 11 categories returned by the Residency Service.

Error response formatjson
{
  "error": {
    "code": "RES_1000",
    "message": "Residency policy not found",
    "http": 404
  }
}

PolicyRES_1000-1099

CodeHTTPNameDescriptionResolution
RES_1000404POLICY_NOT_FOUNDResidency policy not foundVerify the policy ID exists for this tenant
RES_1001409POLICY_ALREADY_EXISTSA policy with this name already existsUse a different name or update the existing policy
RES_1002409POLICY_ACTIVECannot delete an active policyDeactivate the policy first
RES_1003400INVALID_POLICY_RULESPolicy rules validation failedCheck rule format against API docs

ClassificationRES_1100-1199

CodeHTTPNameDescriptionResolution
RES_1100404CLASSIFICATION_NOT_FOUNDData classification not foundVerify the classification ID exists
RES_1101409CLASSIFICATION_ALREADY_EXISTSA classification with this name already existsUse a different name
RES_1102400AUTO_CLASSIFY_FAILEDAuto-classification engine failedProvide valid data samples for classification

ConsentRES_1200-1299

CodeHTTPNameDescriptionResolution
RES_1200404CONSENT_RECORD_NOT_FOUNDConsent record not foundVerify the consent record ID exists
RES_1201404CONSENT_SUBJECT_NOT_FOUNDConsent subject not foundVerify the subject ID exists
RES_1202409CONSENT_ALREADY_GIVENConsent already recorded for this purposeUpdate instead of creating a new record
RES_1203400INVALID_CONSENT_PURPOSEInvalid consent purpose specifiedUse a valid consent purpose from the policy

DSARRES_1300-1399

CodeHTTPNameDescriptionResolution
RES_1300404DSAR_NOT_FOUNDData Subject Access Request not foundVerify the DSAR ID exists
RES_1301409DSAR_ALREADY_COMPLETEDDSAR has already been completedCannot modify a completed DSAR
RES_1302400INVALID_DSAR_TYPEInvalid DSAR type specifiedValid types: access, rectification, erasure, portability, restriction
RES_1303429DSAR_RATE_LIMITToo many DSARs submitted in short periodWait before submitting another DSAR

ComplianceRES_1400-1499

CodeHTTPNameDescriptionResolution
RES_1400404COMPLIANCE_CHECK_NOT_FOUNDCompliance check not foundVerify the check ID exists
RES_1401409VIOLATION_ALREADY_RESOLVEDCompliance violation already resolvedCheck violation status before updating
RES_1402400INVALID_FRAMEWORKInvalid regulatory framework specifiedUse a registered framework (GDPR, CCPA, LGPD, etc.)

Data FlowRES_1500-1599

CodeHTTPNameDescriptionResolution
RES_1500404DATA_FLOW_NOT_FOUNDData flow mapping not foundVerify the data flow ID exists
RES_1501409ANOMALY_ALREADY_REPORTEDThis anomaly has already been reportedCheck existing anomalies before reporting
RES_1502400INVALID_FLOW_MAPPINGInvalid data flow mapping configurationEnsure source and destination are valid

DPA & TransferRES_1600-1699

CodeHTTPNameDescriptionResolution
RES_1600404DPA_NOT_FOUNDData Processing Agreement not foundVerify the DPA ID exists
RES_1601404TRANSFER_RULE_NOT_FOUNDCross-border transfer rule not foundVerify the transfer rule ID exists
RES_1602409TRANSFER_BLOCKEDCross-border transfer blocked by policyReview adequacy decisions and transfer mechanisms
RES_1603404SUB_PROCESSOR_NOT_FOUNDSub-processor not foundVerify the sub-processor ID exists

PIA & BreachRES_1700-1799

CodeHTTPNameDescriptionResolution
RES_1700404PIA_NOT_FOUNDPrivacy Impact Assessment not foundVerify the PIA ID exists
RES_1701409PIA_ALREADY_SUBMITTEDPIA has already been submitted for reviewCannot modify a submitted PIA
RES_1702404BREACH_NOT_FOUNDBreach record not foundVerify the breach ID exists
RES_1703400INVALID_BREACH_SEVERITYInvalid breach severity levelValid levels: low, medium, high, critical
RES_1704409BREACH_ALREADY_CLOSEDBreach has already been closedCannot modify a closed breach record

Retention & LocationRES_1800-1899

CodeHTTPNameDescriptionResolution
RES_1800404RETENTION_POLICY_NOT_FOUNDRetention policy not foundVerify the retention policy ID exists
RES_1801409RETENTION_IN_PROGRESSRetention execution already in progressWait for current execution to complete
RES_1802404LOCATION_NOT_FOUNDData storage location not foundVerify the location ID exists
RES_1803400INVALID_RETENTION_PERIODInvalid retention period specifiedPeriod must be a positive integer (days)

AuthenticationRES_1900-1999

CodeHTTPNameDescriptionResolution
RES_1900401UNAUTHORIZEDAuthentication requiredProvide a valid JWT token in Authorization header
RES_1901403FORBIDDENInsufficient permissionsRequest required role from admin
RES_1902401INVALID_TOKENInvalid or expired authentication tokenObtain a fresh JWT token

GeneralRES_2000-2099

CodeHTTPNameDescriptionResolution
RES_2000500INTERNAL_SERVER_ERRORInternal server errorRetry; if persistent, contact support with request_id
RES_2001503SERVICE_UNAVAILABLEService temporarily unavailableRetry with exponential backoff
RES_2002504TIMEOUTRequest timeoutReduce request complexity or retry
RES_2003400VALIDATION_FAILEDRequest validation failedCheck request body against API docs
RES_2004429RATE_LIMIT_EXCEEDEDRate limit exceededWait and retry after the rate limit window resets