400 Bad Request
- Use it when
- The request is malformed, such as bad syntax or framing
A 422 means the server understood your request and its syntax, but could not act on the data. Read the error body, fix the invalid field, and resend.
A 422 Unprocessable Content error (formerly Unprocessable Entity) means the server understood the content type and the syntax of the request was correct, but it could not process the instructions inside it. The request data is usually invalid in meaning, such as a failed validation. Fix the data the error body points to, then resend.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
The code was first defined as 422 Unprocessable Entity in WebDAV (RFC 4918), and the IANA registry now lists it as Unprocessable Content under RFC 9110. They are the same status. MDN says clients should expect that repeating the request without modification will fail with the same error.
So the client sent data the application rejects, and the API or app decides what counts as invalid. That is why the fix is almost always in the request, and the details are in the response body.
On a form, a 422 usually means a field was rejected after you submitted it. Check each field for a missing value, a wrong format or a value the site does not accept, fix it and submit again. If the site shows only a generic error, check the form for anything you left blank. If it keeps failing with correct data, report it to the site.
HTTP/1.1 422 Unprocessable Content
Content-Type: application/json; charset=utf-8
{"message": "content is not valid Base64",
"documentation_url": "https://docs.example.com/en/rest/repos/contents"}MDN's example returns a JSON message such as "content is not valid Base64" with a documentation link. The body is where the reason lives, not the status line.
Capture it in DevTools or with curl -v and compare field names, types, ranges and required fields with the API docs.
In the MDN example the server wanted strictly RFC 4648 Base64 and rejected content with line feeds in it. Dates, numbers as strings and character encodings are similar traps.
Because repeating an unchanged request gives the same result, do not retry automatically. Surface the field errors to the user instead.
4 questions people ask next, answered from the sources on this page.
It is Unprocessable Content (once called Unprocessable Entity). The server understood the request type and syntax but could not process the instructions in it.
Use 400 for malformed requests, such as bad syntax or framing. Use 422 when the request is well formed but its content cannot be acted on, such as a validation failure.
Yes. RFC 4918 named it Unprocessable Entity. RFC 9110 renamed it Unprocessable Content, and the IANA registry lists the new name.
Not unchanged. MDN says repeating the request without modification will fail with the same error. Fix the data first.
Run the free audit, then approve the fixes. Every change can be undone.