Skip to main content

ZDX GraphQL API Codes

ZDX GraphQL API uses the following response codes and error messages.

CategoryApplication-Level ErrorHTTP Status CodeDescriptionClient Action
AuthenticationUNAUTHENTICATED401Missing or invalid authentication token.Verify and correct the credentials. Do not retry.
AuthenticationTOKEN_EXPIRED401The authentication token has expired.Refresh the token and retry once.
AuthenticationFORBIDDEN403Insufficient permissions to access the resource.Do not retry. Verify your assigned user role.
AuthenticationINSUFFICIENT_SCOPE403The OAuth scope required for this request is missing.Do not retry. Reissue the token with the correct scope.
ClientBAD_USER_INPUT400 or 413Invalid GraphQL request, or request body exceeds the 100 KiB limit.Verify and correct the request structure. Do not retry.
ClientINVALID_ARGUMENT400 or 415Invalid argument, request content type, or request content encoding.Verify and correct the request parameters. Do not retry.
ClientMISSING_REQUIRED_FIELD400A required query argument or selection field is missing.Verify and correct the query structure. Do not retry.
ClientVALIDATION_FAILED400Business validation logic or constraints failed.Verify input values and parameters and correct them if needed. Do not retry.
ClientCONFLICT or ALREADY_EXISTSN/AResource state conflict detected.Resolve the conflicting state before retrying.
ClientMISSING_MANDATORY_COMPRESSION406The mandatory Accept-Encoding: gzip header is missing.Add the header to your request. Do not retry without it.
DataNOT_FOUND404The requested resource does not exist.Verify the resource identifier. Do not retry.
DataDATA_NOT_READYN/AThe requested data is still processing.Retry later using exponential backoff.
DataRESOURCE_LOCKEDN/AThe resource is temporarily locked.Retry later using exponential backoff.
DataPRECONDITION_FAILEDN/AA required prerequisite state has not been met.Do not retry until the prerequisite state is updated.
ThrottleRATE_LIMITEDN/AAPI rate limits have been exceeded.Retry using exponential backoff and honor the Retry-After header.
ThrottleRETRY_LATERN/ATemporary server-side throttling condition.Retry using exponential backoff.
ServerINTERNAL_SERVER_ERROR500Generic server-side exception.Retry with backoff. Escalate to Zscaler Support with the x-request-id if persistent.
ServerSERVICE_UNAVAILABLE503An upstream dependency or service is temporarily unavailable.Retry with backoff. Escalate to Zscaler Support with the x-request-id if persistent.
ServerTIMEOUT or DEPENDENCY_FAILUREN/ARequest timed out or an internal service dependency failed.Retry with backoff. Escalate to Zscaler Support with the x-request-id if persistent.
NOTE

For requests returning DATA_NOT_READY, RESOURCE_LOCKED, RATE_LIMITED, RETRY_LATER, or any 5xx server error, retry the operation using exponential backoff. Treat all other error codes as client-side configuration errors. Do not retry these requests to prevent exceeding your daily consumption rate limit budget.