Skip to content
On this page

HTTP 422 Unprocessable Entity means the server understood your request perfectly but refused to act on it because the data inside failed a validation check. The format is correct — valid JSON, all the right pieces — but the actual values don't pass the server's rules: a required field is missing, a value is the wrong type, or it breaks a business rule (like a date in the past). Think of it as a form that's filled in neatly but with an answer the system won't accept. It's also written "HTTP 422" or just "422 error" / "422 status code."

Quick facts

Status code422
MeaningUnprocessable Entity
Category4xx Client Error
Common causes (scraping)Missing required field, wrong type, value out of allowed range
Right responseFix the request / retry with backoff; for disguised blocks use a real-browser unblock

What a 422 Unprocessable Entity means

The request's format is fine, but the server can't process what's inside it. This is almost always a validation failure on the payload (the data you sent in the request body): a field is missing, a value is the wrong type, or a value breaks a business rule. In short, a 422 status code means the request was well-formed but failed validation.

422 in APIs and frameworks, and 422 vs 400

RFC 9110, the current HTTP standard, renamed 422 to Unprocessable Content and moved it from the WebDAV spec into core HTTP. Both names mean the same thing, and you will see either in error messages.

Which code you get for bad input depends on the framework behind the API:

  • FastAPI returns 422 when the request body, query, or path parameters don't match the declared types. The response lists each failing field under detail.
  • Ruby on Rails uses 422 for failed model validations (:unprocessable_entity, and :unprocessable_content in newer versions).
  • Laravel returns 422 with an errors object when validation fails on a JSON request.
  • Django REST Framework returns 400 for the same kind of validation failure.

If you build the API: use 400 when the request can't be parsed at all (broken JSON, wrong content type) and 422 when it parses but the values break your rules. Return the field name and the reason for each failure so the client can fix it without guessing.

Why scrapers see 422

You'll hit a 422 when you send data to an API or submit a form and one of the fields is invalid — a malformed JSON value, a bad date, or a required parameter you left out. It's about meaning, not formatting, so fixing it like a 400 'bad request' won't help: the body parsed fine, the values just didn't pass validation.

How to fix a 422 error

Start by reading the response body — most APIs return JSON that lists exactly which fields failed and why. Then fix your payload to match what the server expects: correct the data types, include every required field, and stay within allowed ranges. A reliable trick is to copy a real, working submission captured in your browser's DevTools (the built-in developer tools, opened with F12), including any hidden form fields and tokens. Because a 422 is a problem with the data in your request, changing IPs or headers won't fix it.

Next in HTTP status codes explained · 8 of 8

And the one that is a legal decision, not a technical one.

What Is the 451 Status Code (451 Unavailable For Legal Reasons)?

Related terms

Concept map

Concept map

How 422 Status Code (422 Unprocessable Entity) connects

The terms most directly tied to this one. Hover a node to see its neighbours, click to preview, drag to rearrange.

0 terms · 0 connections
You are here · HTTP Errors
Building map…

Frequently asked questions

How do I fix a 422 Unprocessable Entity error?

Read the response body: most APIs list each field that failed and why. Check required fields, value types (a number sent as a string is a common cause), allowed values and formats such as dates or emails, and that you send JSON with a Content-Type: application/json header. Fix the values and send the request again.

Is 422 a client or server error?

It's a client-side error (the 4xx family) — the server is telling you the problem is in your request, not on its end.

Does a 422 mean I'm blocked when scraping?

Not necessarily. A 422 points at your request, not a ban. That said, some anti-bot systems return it instead of a 403, so read the response body and headers to be sure.

What's the difference between 422 and 400?

A 400 Bad Request usually means the server couldn't even parse the request — the syntax is broken. A 422 means it parsed the request fine, but the values failed validation. Simply put: 400 = can't read it, 422 = read it, didn't like it.

Last updated: 2026-10-29