---
answer: direct
beat: dev-practices
source: 1 article · updated: November 13, 2026
---

When should an API return 400 versus 422?

400 means the request is malformed in a way the server could not parse, such as broken JSON. 422 Unprocessable Content means the request was well-formed but failed semantic validation, like an invalid email or a negative quantity. Many APIs use 400 for both, but separating them helps clients.

Answered in

HTTP Status Codes You Misuse, and What to Return Instead

401 vs 403, 301 vs 308, 404 vs 410, 502 vs 503 vs 504. Picking the right status code tells clients and monitors what to do next.

Crashtech Editorial November 13, 2026 Development Best Practices

Read the full analysis

Other questions this article answers

More development best practices questions

Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the Development Best Practices beat.