HTTP status code · RFC 9110, section 15.5.1

400 Bad Request

400 Bad Request means the server won't process the request because something about it is malformed or invalid.

What 400 means

A catch-all client error: invalid JSON, a missing required parameter, a header that's too large, or a request the server can't parse. Many APIs return 400 with a body explaining which field was wrong.

Common causes

  • Malformed JSON or a wrong Content-Type.
  • Missing or invalid parameters.
  • Cookies or headers too large (often shown as *400 Request Header Or Cookie Too Large*).
  • A URL with invalid characters.

How to fix 400

  • Read the response body: APIs usually say what's wrong.
  • Clear the site's cookies if a browser gets 400 on every page.
  • Validate input on the client before sending.

How Uptenna treats 400

With the default expected status (200-399), a 400 counts as a failed check. Two failures in a row open an incident, and the alert says Got HTTP 400 (expected 2xx or 3xx). The first successful check resolves it and sends a recovery. Monitors send a plain request with no body and no custom headers, so point them at a URL that answers a simple GET, such as a health endpoint.

See Monitors for expected status codes, keywords and timeouts.

Frequently asked questions

What does HTTP 400 mean?

400 Bad Request means the server won't process the request because something about it is malformed or invalid.

Is 400 an error?

Yes, 400 is a client error: the server is saying something about the request needs to change.

Does an uptime monitor treat 400 as down?

By default, yes: Uptenna counts anything outside 200-399 as a failed check and opens an incident after two failures in a row. You can change the expected status per monitor.

Related status codes

Find out the moment your site returns 400

Uptime checks, cron job heartbeats and a public status page, with an alert when something breaks. Free: 5 monitors checked every 5 minutes and email alerts. Pro ($9/month): checks every minute, Slack, Discord, Telegram and webhooks, SSL expiry warnings.

  • No card required
  • Status page included
  • Email alerts included