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

# Accept or decline errors

This topic covers some of the basic error scenarios with the [Accept or Decline Service Invitation Process](c_acceptDeclineServiceInvitation).

## Invalid Password

If the invitee is a new Storefront Gateway User, then the Process will prompt for a password in order to complete the new User onboarding. If the invitee provides an invalid password (e.g., the password fails to meet the current password complexity rules), then Storefront Gateway responds with a `HTTP 400` status code. The body includes a `fieldErrors` array with the reason(s) as to what went wrong:

```
**RESPONSE - body**
{ 
   "processId": "8bca30ca-dd44-4050-aece-53b0dbed1922",
   "processName": "entitlementManagement.UserAcceptDeclineInvite.v1.0", 
   "stepName": "UserDetailsPrompt" 
   "lastStep": **false**,  
   "fieldErrors": [ 
      { 
         "field": "credential", 
         "code": "NotWeakPassword", 
         "rejectedValue": "test", 
         "message": "password-regex-rule-violation-.*[0-9].*" 
     }, 
     { 
         "field": "credential", 
         "code": "NotWeakPassword", 
         "rejectedValue": "test", 
         "message": "blacklisted-password" 
     }, 
     { 
         "field": "credential", 
         "code": "NotWeakPassword", 
         "rejectedValue": "test", 
         "message": "password-regex-rule-violation-.{8,}" 
     }, 
     { 
         "field": "credential", 
         "code": "NotWeakPassword", 
         "rejectedValue": "test", 
         "message": "password-regex-rule-violation-.*[A-Z].*" 
     } 
   ], 
   "lastFailedStepAction": { 
      "processId": "8bca30ca-dd44-4050-aece-53b0dbed1922", 
      "processName": "entitlementManagement.UserAcceptDeclineInvite.v1.0",
      "displayMessage": "Please Enter User details for self onboarding", 
      "parameters": { 
         "email": "String", 
         "phone": "String", 
         "credential": "String",
         "displayName": "String", 
         "lang": "String",
      }, 
      "stepName": "UserDetailsPrompt" 
   } 
}
```

In the above example, objects in the `fieldErrors` array indicate the following:

* The password fails to include at least one number (0-9)
* The password is on an internal list of commonly banned passwords
* The password fails to meet the minimum length of (8 characters)
* The password fails to include at least one capital (A-Z)

**Note:** Passwords can be defined to include at least one minimum [special character](reusePasswordSettingSpecialCharsList). Configure your Password complexity rules in the Admin console. See the Storefront Gateway Admin User Guide for more details.

The Process error response also includes a `lastStepFailedAction` object that repeats the previous Process step's request. The user can re-attempt their request with a different (ideally stronger) password, and complete their onboarding as normal.

| `processId` | The unique identifier for this instance of the Process. |
| - | - |
| `stepName` | The internal name of the step that the Process is currently on / just executed. |
| `lastStep` | Boolean that indicates whether or not this was the last step in the Process. |
| `fieldErrors` | Array of possible error objects. Each object describes a separate error condition. |
| `field` | The name of the specific field where the error occurred. |
| `code` | An error object's internal code name. |
| `rejectedValue` | The actual value that caused the error |
| `message` | Optional message that describes the error. |
| `lastFailedStepAction` | Object that repeats the previous Process step's details and required input. This allows the client to retry the failed request. |

## Error Codes

**Note:** See [Common Process Error Codes](c_commonProcessErrors).

| HTTP Status | Storefront Gateway Business Error Code | Description |
| - | - | - |
| `400` | `invalid-password-format` | The password provided did not meet the minimum criteria for a sufficiently complex password. |

**Parent topic:**[Accept or Decline Service Invitation Process](c_acceptDeclineServiceInvitation)


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