> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ulm.m1amdocs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Common Process Error Codes

This topic describes some of the common error codes that can occur when you invoke a Digital Identity Management Process. Digital Identity Management returns errors in one of two types of error arrays: validation errors (errors based on user or client input in a specific field), and operation errors (errors based on everything else).

## Validation Field Errors

A validation `fieldError` is generated during a JSR303 validation. Output includes `fieldName`, `code`, and `message`. It's mapped to the `HTTP 400` status code.

```
**Example field error**
{
   "processId": "640b4b3a-dbaf-4b73-abfb-979475aee0bb",
   "stepName": "UsernameInputStepName",
   "fieldErrors": [
      {
         "field": "accept",
         "code": "NotNull",
         "message": "May not be null",
      }
   ],
   "lastFailedStepAction": {
      "displayMessage": "Please provide a username parameter",
      "parameters": {
         "parameter1": "value1",
         "parameter2": "value2"
      },
      "processId": "640b4b3a-dbaf-4b73-abfb-979475aee0bb",
      "stepName": "UsernameInputStepName"
   }
}
```

| Digital Identity Management Business Error Code | Description |
| - | - |
| `unexpected-field-error` | The user entered unexpected or invalid input. |

## Operation Errors

This error is generated from a variety of error conditions, but it generally refers to an issue with the service (as opposed to the client or user). Every object in an `operationErrors` array will contain a code and message, and these are designed to be explicit enough to clarify the reason for the error.

| HTTP Status | Digital Identity Management Business Error Code |   |
| - | - | - |
| 400 | `process-terminated-with-too-man-retries` | There were too many input attempts in short succession. |
| Any | `service-process-step-general-failure` |   |

```
**Example operation error**
{ 
   "lastFailedStepAction": { 
      "displayMessage": "Please provide a username parameter", 
      "parameters": { 
         "parameter1": "value1", 
         "parameter2": "value2" 
      }, 
      "processId": "640b4b3a-dbaf-4b73-abfb-979475aee0bb", 
      "stepName": "UsernameInputStepName" 
   }, 
   "operationErrors": [ 
      { 
         "code": "service-process-step-general-failure", 
         "message": "Failed to perform something" 
      } 
   ], 
   "fieldErrors": [ 
      { 
         "code": "NotNull", 
         "message": "Failed to perform something", 
         "field": "userId" 
      } 
   ], 
   "processId": "640b4b3a-dbaf-4b73-abfb-979475aee0bb", 
   "stepName": "UsernameInputStepName" 
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.