What Is HTTP 400 Bad Request?
HTTP 400 Bad Request explained, and what it means when you see it in CI/CD and deployments.
HTTP 400 means the request was malformed and the server refused to process it.
What it means
A 400 points to a client-side mistake: invalid JSON, a missing required field, a bad query parameter, or a malformed header. The fix is in the request, not the server.
When you see it in CI/CD
In CI, a 400 from an API test usually means the test payload is wrong or an env var rendered empty. This is deterministic; retrying will not help.
Key takeaways
- 400 means a malformed request.
- The fix is client-side.
- Retrying does not help a 400.
Related guides
What Is HTTP 422 Unprocessable Entity?HTTP 422 Unprocessable Entity means the request was well-formed but failed validation. Learn the fix.
What Is HTTP 401 Unauthorized?HTTP 401 Unauthorized means authentication failed or is missing. Learn the common CI causes.
What Is a REST API? Resource-Oriented Web APIsA REST API exposes resources over HTTP using standard methods and status codes. Learn what REST is and how CI…