Skip to main content

Error responses

This page describes what your client receives from Gateway API. Check both the HTTP status and the response body: on some endpoints HTTP 200 includes a failed operation. Where the same endpoint has both outcomes, its response tabs distinguish 200 · code: OK from 200 · code: ERROR.

HTTP error responses​

An HTTP error response may include a JSON body with details about the request. For example, a rejected request can return:

Example: HTTP 400 for an ID exceeding 36 characters
{
"timestamp": "2026-11-18T09:00:00Z",
"status": 400,
"error": "BAD_REQUEST",
"message": "Invalid request parameters",
"path": "/mobbscan-agent/checkVerificationProcessResult/123e4567-e89b-12d3-a456-426614174000-extra"
}

timestamp and message vary. path identifies a Gateway route. The error value is usually the HTTP status name (BAD_REQUEST, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, CONFLICT, INTERNAL_SERVER_ERROR); for an oversized Gateway JSON body it is PAYLOAD_TOO_LARGE.

For example, when Gateway handles a missing process as a 404, the response has the Gateway format:

Example: Gateway 404 response
{
"timestamp": "2026-11-18T09:00:00Z",
"status": 404,
"error": "NOT_FOUND",
"message": "Process not found with provided id",
"path": "/mobbscan-agent/getVerificationProcessData/123e4567-e89b-12d3-a456-426614174000"
}
Gateway HTTP statusResponse received by your client
400The request contains invalid or missing data. Check the required fields, formats and limits, correct the request, and try again.
401The credentials or access token were rejected. The response body can vary by endpoint; use the HTTP status to identify the authentication failure. If the access token expired, renew it with POST /auth/refresh and your refresh token. If renewal is rejected, authenticate again with POST /auth/token and your API key and secret.
403The request was understood, but your credentials are not allowed to perform the action. Check the permissions configured for your account. The response body can vary by endpoint.
404The requested process or resource was not found. Check the process ID or resource path and confirm that the process exists. Some endpoints report an unknown process with HTTP 200 instead; see below.
405The endpoint does not support the HTTP method used. Check the method in the endpoint reference.
409The process is not in a state that allows this action. Check its current result before trying again.
413The request body or uploaded file is too large. Reduce its size and retry.
500Gateway could not complete the request. For actions that change process state, check the current result before retrying. Contact Mobbeel support if the error persists.

HTTP 200 that needs further inspection​

These are Gateway responses, not successful operations merely because their HTTP status is 200:

Gateway endpointGateway response and check
POST /mobbscan-agent/scan/start, POST /mobbscan-agent/scanGateway can send HTTP 200 with a JSON code: ERROR and description; only proceed when the operation's code indicates success. Some failures instead generate an HTTP error.
POST /mobbscan-agent/identityVerificationGateway can send HTTP 200 with a nonzero numeric code for failed biometric/validation checks, or code: ERROR for an already finished process. Inspect code, validations and the final process result.
GET /mobbscan-agent/checkVerificationProcessResult/{verificationId}For an unknown ID Gateway can send HTTP 200 with {"code":"ERROR","description":"ERROR_SCAN_ID_DOES_NOT_EXIST"} and no verificationResult. Use verificationResult only when code is OK.
POST /mobbscan-agent/amlValidationGateway can send HTTP 200 with JSON code: ERROR. Inspect code before interpreting validation.
GET /mobbscan-agent/{verificationId}/image/{imageType} and .../recording/{recordingType}Gateway can send HTTP 200 even if the received bytes are an error payload rather than an image or video. With Accept: application/json, it may wrap those bytes as base64 in image or video. Validate the decoded content before storing it.
POST /mobbscan-agent/addExtraVerificationProcessDataGateway can respond with HTTP 200 and JSON code: OK even if the data was not saved. Confirm with Get extra data.

Two additional cases: Get process information and Check process result can return HTTP 401 with a JSON error containing message: "Bad credentials." when no process data is available. If you receive this response, check the process ID and confirm that the process is available. Delete process returns HTTP 204 with no body when the operation completes.

Example: Gateway 401 when Check process result receives no data
{
"timestamp": "2026-11-18T09:00:00Z",
"status": 401,
"error": "UNAUTHORIZED",
"message": "Bad credentials.",
"path": "/mobbscan-agent/checkVerificationProcessResult/123e4567-e89b-12d3-a456-426614174000"
}

For decisions, HTTP 200 has a JSON status and description; a conflicting state can return HTTP 409. Exact error messages vary, so clients should use the status, expected response fields and current process result rather than match message text.