# invalid_detection

> A detection layer returned output that failed validation. For llm: an answer that still could not be used after its part of the text was asked again in halves down to 1,500 characters.

HTTP status: 502

## What to do

Send the text again, or leave out the layer that failed.

## Example

```json
{
  "error": "invalid_detection",
  "request_id": "0f8e2c4a-6b1d-4e3f-9a7c-5d2b8e1f4a60",
  "doc_url": "https://developers.komplai.dk/errors/invalid_detection"
}
```

## Operations that can return it

- POST /v1/redact (https://developers.komplai.dk/reference/redact.md)
- POST /v1/redact/detect (https://developers.komplai.dk/reference/redact.md)
- POST /v1/redact/file (https://developers.komplai.dk/reference/redact.md)

A text job can also end with this code: its status carries it in the field error.

---

https://developers.komplai.dk/errors/invalid_detection
