The Error Object
All errors returned from the FrankieOne API are wrapped in a standardErrorObject.
| Attribute | Type | Description |
|---|---|---|
| errorCode | string | A unique code in the format PREFIX-NUMBER that identifies the error. |
| errorMsg | string | A human-readable message summarizing the error. |
| details | array | An array of issue objects providing specific context about what went wrong. |
| details.issue | string | A detailed description of the specific issue. |
| details.issueLocation | string | The location in the request payload, path, or header where the issue occurred (e.g., body.individual.dateOfBirth). |
| requestId | string | The unique ID for the API request, which should be logged and provided to support if you need assistance. |
Example Error Object
Here is an example of an error returned when an invalid entity ID is provided in the request path.Understanding Error Codes
TheerrorCode is a combination of a prefix (the Issue Location) and a number. This structure helps you quickly identify the source of the problem.
Issue Location Codes (Prefix)
| Prefix | Description |
|---|---|
| API | Errors in your API message, such as an incorrectly constructed URL or method. |
| AUTH | Authorization or security-related errors, like a missing or invalid API key. |
| VAL | API data validation errors. The details array will specify which fields are invalid. |
| ENT | Errors related directly to Entity functions (e.g., an entity not found). |
| DOC | Errors related directly to Document functions. |
| CHECK | Errors related to Check/Verify functions. Indicates a problem with performing a check, not the result of the check itself. |
| SYS | System-level errors on the FrankieOne side. These may be temporary. |
| CODE | Unexpected errors detected in the code. Please contact support if you see these. |
| ADMIN | Admin API errors. Please contact developer support if you receive one. |
Frontend Orchestration & Handling Errors
A robust frontend application should interpret the HTTP status code and the errorCode to present the user with a clear and helpful message.400 - Bad Request (VAL-xxxx)
This is the most common error category. It means the user has provided invalid or incomplete data. You should validate the request parameters and body and retry the API. Your frontend should parse thedetails array to provide specific feedback.
Example Response:
- Iterate through the
detailsarray. - For each issue, use the
issueLocationto find the corresponding input field in your form. - Display the issue message directly below that field.
404 - Not Found (API-1010)
This means the resource you requested (like an entityId or workflowExecutionId) does not exist. You should validate the request parameters and retry the API.Scenario: Your application tries to fetch results for a workflow that has been deleted or whose ID is incorrect.
Example Response:- Check for the 404 status code.
- Redirect the user to a “Not Found” page or display a clear message like “We could not find the record you were looking for. Please check the ID or start a new search.”
- Avoid showing a generic “An error occurred” message, as this is a specific and actionable state.
5xx - Server & System Errors (SYS-xxxx)
These errors indicate a problem on FrankieOne’s side. The issue may be temporary. You can retry the API after a short delay.Scenario: A service provider required for a check is temporarily unavailable.
Example Response:- Check for any 5xx status code (500, 503, etc.).
- Display a generic, user-friendly message, such as: “We’re sorry, something went wrong on our end. Please try again in a few moments.”
- Do not display the technical
errorMsgto the user. - You may implement a retry mechanism with exponential backoff for 503 errors, as these are often transient.
- Log the full error response, including the
requestId, so you can report it to support if the issue persists.