---
title: "Bad Request (bad-request)"
description: "PubNio bad-request problem, HTTP 400: The request's path, query, headers, or body does not decode against the API contract, or a handler rejects a malformed value, such as a file whose signature does not match its MIME type."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Bad Request (bad-request)

HTTP 400 Bad Request. The request's path, query, headers, or body does not decode against the API contract, or a handler rejects a malformed value, such as a file whose signature does not match its MIME type.

## When it happens

A decoding failure lists each offending value in `errors`, its path starting with the request slot.

Every API operation declares it.

## Response body

```json
{
  "type": "https://pubnio.com/docs/problems/bad-request/",
  "status": 400,
  "title": "Bad Request",
  "detail": "Request validation failed.",
  "code": "bad_request",
  "errors": [
    {
      "path": ["query", "workspaceId"],
      "message": "Expected a UUID"
    }
  ],
  "requestId": "0f8e4c2a-6b1d-4e3f-8a9b-7c6d5e4f3a21"
}
```

| Field    | Type            | Always present |
| -------- | --------------- | -------------- |
| `errors` | array of object | No             |

## Recovery for agents

- Fix each value at its `errors` path (`query`, `params`, `headers`, or `payload` first), as `message` says, then resend.

## Retryable

No: the SDKs mark HTTP 400 not `retryable`.

## Limits

- Match on `type` or `code`, not on `detail`.

## Related

- [General problems](https://pubnio.com/docs/problems/#general)
- [API reference](https://pubnio.com/docs/api/)

Source: https://pubnio.com/docs/problems/bad-request/index.mdx
