# Status Codes

When sending an HTTP request via the API, you can use the following status codes to check if the API request was successful:

## Status Code Descriptions

### Success Codes

| Status Code | Description                   |
| ----------- | ----------------------------- |
| 200         | Request successful            |
| 201         | Resource created successfully |

#### Success Response Example

{% hint style="info" %}
This is a content demonstration. The response format may vary for different endpoints. Please refer to the documentation for the specific endpoint.
{% endhint %}

```json
{
  "count": "integer",
  "next": "string|null",
  "previous": "string|null",
  "results": [
    // Result content returned
  ]
}
```

### Error Codes

| Status Code | Description           |
| ----------- | --------------------- |
| 400         | Bad Request           |
| 401         | Authentication failed |
| 403         | Permission denied     |
| 404         | Resource not found    |
| 500         | Server error          |

#### Error Response Example

#### 400 - Bad Request: Required field missing

```javascript
{
  "files": ["This field is required."],
  "filename": ["This field is required."],
  "file": ["This field is required."]
}
```
