Skip to content

400 bad_request

HTTP status
400
Code
bad_request
Title
Bad request
Meaning
Malformed JSON or headers.

What to do

Check that the body is valid JSON and that headers such as Content-Type and Idempotency-Key are well formed.

Where it comes from

Any authenticated endpoint can return it.

The response

Errors are application/problem+json (RFC 9457). detail never repeats the values you sent, and type links to this page. Quote requestId if you contact support.

{
"type": "https://docs.rhinorelay.com/api/errors/bad-request/",
"title": "Bad request",
"status": 400,
"code": "bad_request",
"detail": "Malformed JSON or headers.",
"requestId": "req_01J9Z8X7W6V5T4S3R2Q1P0N9M8"
}

See it

With $BASE and $KEY set as in the quick start:

Terminal window
# Expect 400 bad_request
curl -X POST "$BASE/contacts" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"email":'

Every error code