# Create client errors

Files a crash or error the DESKTOP APP hit, against the caller's workspace, so a break somebody saw can be found afterwards. Body: `kind` (one of crash, error, unhandled_rejection, render), `message`, `route`, `version`, `platform`, and optionally `stack` and `requestId`; JSON under 16KB, rate-limited per session. Written by the client's own error handler, never by a person, and it answers no question about the desk.

Access class: `workspace`.

## Endpoint

`POST /v1/client/errors`

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "kind": "string",
    "message": "string",
    "platform": "string",
    "requestId": "",
    "route": "string",
    "stack": "string",
    "version": "string"
  },
  "params": {},
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "accepted": true
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
