---
title: Error Handling
slug: error-handling
icon: ❗
createdAt: 2022-08-18T07:30:34.000Z
---

### Response Codes

We use the following status code in the response depending on the success or failure:

| **Status Code**               | **Description**                                                                                  |
| ----------------------------- | ------------------------------------------------------------------------------------------------ |
| 200 - ✅ Success/OK            | Request success and the response will return with the requested data.                            |
| 400 - ❌ Bad Request           | The request returned an error.                                                                   |
| 401 - ❌ Unauthorized          | The credentials are not valid.                                                                   |
| 403 - ❌ Forbidden             | You don't have permission to perform the request.                                                |
| 404 - ❌ Not Found             | The requested resource can't be found.                                                           |
| 500 - ❌ Internal Server Error | Web server is experiencing problems, but it can't pinpoint the specific error or its root cause. |

## Troubleshoot

Here is our recommendation in terms of handling errors:

### 400 - Bad Request Error

```json
{
    "status": 400,
    "error_code": 3,
    "message": "Bad Request",
}
```

****<font color="#e00e0e">**Cause**</font>
The bad request error occurs when the user sends an incorrect or invalid data like invalid password or invald data.

### 400 - UserDoesnotExistError

```json
{
    "status": 400,
    "error_code": 21,
    "message": "User does not exist.",
}
```

****<font color="#e00e0e">**Cause**</font>
The user doesnot exist error occurs if user try to login with incorrect credentials.

### 400 - AirWaybillAlreadySubscribedError

```json
{
    "status": 400,
    "error_code": 30,
    "message": "Air Waybill is already subscribed with same awb number",
}
```

****<font color="#e00e0e">**Cause**</font>
System shows error if user try to repost the already existing air waybill number.

### 400 - ContainerAlreadySubscribedError

```json
{
    "status": 400,
    "error_code": 10,
    "message": "Container is already subscribed with same mbl number",
}
```

****<font color="#e00e0e">**Cause**</font>
System shows error if user try to repost the already existing container number and mbl number.

### 500 - Internal Server Error

```json
{
    "status": 500,
    "error_code": 1,
    "message": "Internal server error",
}
```

****<font color="#e00e0e">**Cause**</font>
Web server is experiencing problems, but it can't pinpoint the specific error or its root cause.

### 500 - TemporarySubscriptionUnavailableError

```json
{
    "status": 500,
    "error_code": 11,
    "message": "Temporarily subscription unavailable for this carrier",
}
```

****<font color="#e00e0e">**Cause**</font>
It's not you, it's us. This error means we have suspended the subscription for the particular carrier temporarily

### ✉️ Need some help?[](https://app.archbee.io/public/PREVIEW-z2kbkOFdY1BHJSALNXcPA#tm-need-some-help)

If you encounter a problem or require assistance, please contact our support team with details regarding your request at [support@rippey.ai](mailto\:support@rpalabs.com). A representative will connect with you soon. 😊
