Error reference
body_too_large
The request body is larger than the API accepts.
HTTP 400invalid_requestNot retryable0 credits
HTTP 400
error.type = invalid_requestHow to fix it
Send a smaller body; search and price bodies are a few hundred bytes. The call is free.
Example response
400 invalid_request
// HTTP 400
{
"error": {
"type": "invalid_request",
"code": "body_too_large",
"message": "The request body is larger than the API accepts.",
"param": null,
"requestId": "req_…",
"creditsCharged": 0,
"retryable": false,
"docUrl": "https://stayingapi.com/docs/errors/body_too_large"
}
}This error is free
Like every StayingAPI error,
body_too_large returns creditsCharged: 0. You are never billed for a failed, empty, blocked or not-found call.See the full error catalog or the response envelope. The canonical URL for this page is https://stayingapi.com/docs/errors/body_too_large.