> 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

### 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.

![](/files/br8pneVmK1lICu1QxM6n)\
The base class for all responses

![](/files/fDWcVWC56rybYpoRmXsT)\
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"
}
```
