Error reference
unsupported_content_type
The request body has a Content-Type the API does not read.
HTTP 400invalid_requestNot retryable0 credits
HTTP 400
error.type = invalid_requestHow to fix it
Send bodies as application/json (GET requests need no body). The call is free.
Example response
400 invalid_request
// HTTP 400
{
"error": {
"type": "invalid_request",
"code": "unsupported_content_type",
"message": "The request body has a Content-Type the API does not read.",
"param": null,
"requestId": "req_…",
"creditsCharged": 0,
"retryable": false,
"docUrl": "https://stayingapi.com/docs/errors/unsupported_content_type"
}
}This error is free
Like every StayingAPI error,
unsupported_content_type 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/unsupported_content_type.