> For the complete documentation index, see [llms.txt](https://docs.fluxpoint.dev/api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fluxpoint.dev/api/client/responses.md).

# Responses

List of responses sent back by the API

### Default Response

All responses will include either a success or an error.

<mark style="color:green;">**Success**</mark>

```json
{
    "success": true,
    "code": 200,
    "message": ""
}
```

<mark style="color:red;">**Error**</mark>

```json
{
    "success": false,
    "code": 404,
    "message": "Some error message here"
}
```

{% hint style="info" %}
All requests to the API will always have these 3 fields including the additional data for each endpoint you use.
{% endhint %}

### Example

This will be different for certain languages but should be the standard to use.

![](https://3672136931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW0dwcUm6OW6GS8mkEbZT%2Fuploads%2Fk8o0jlY5IigzyeNNjXH1%2Fimage.png?alt=media\&token=ed44db2a-fbb3-47cd-92d1-5ea9b029feed)\
The base class for all responses

![](https://3672136931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW0dwcUm6OW6GS8mkEbZT%2Fuploads%2FQ6CcsUgOx2K8uZSlWV9r%2Fimage.png?alt=media\&token=29c9868c-c3af-46a0-8814-1d411beba805)\
Other responses should inherit or add the default response of success, code and message along with the endpoint data.\
\
It should look like

```json
{
    "success": true,
    "code": 200,
    "message": "",
    "r": 0,
    "g": 0,
    "b": 0,
    "name": "White",
    "hex": "#ffffff"
}
```
