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
{
"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
errorspath (query,params,headers, orpayloadfirst), asmessagesays, then resend.
Retryable
No: the SDKs mark HTTP 400 not retryable.
Limits
- Match on
typeorcode, not ondetail.