422 Unprocessable Content: valid syntax, invalid data

422 Unprocessable Content means the request is well-formed but its data can’t be processed, typically because it fails validation.

Check a URL’s status code

422 Unprocessable Content means the server understood the request and its format is fine, but the data inside doesn’t make sense: an email field without an email address, an end date before the start date, a quantity of −3. It’s the standard answer to validation errors in modern APIs.

Definition

RFC 9110, section 15.5.21 says the server understands the content type and the syntax is correct, but it “was unable to process the contained instructions.” The code started life in WebDAV (RFC 4918) as “Unprocessable Entity,” the name many frameworks still use; RFC 9110 renamed it and made it part of core HTTP.

The line between 400 and 422: 400 is for requests that are broken (malformed JSON, invalid syntax), 422 for requests that are well-formed but semantically wrong. Use 409 when the problem is a clash with the resource’s current state.

Where you’ll meet it

  • Laravel returns 422 with an errors object when validation fails on a JSON request.
  • Ruby on Rails apps render failed form saves with the unprocessable status.
  • FastAPI answers 422 when request data doesn’t match the declared model.
  • IndexNow returns 422 when submitted URLs don’t belong to the host or the key doesn’t match.

SEO impact

None for regular pages: crawlers don’t submit forms or API payloads. A public URL that returns 422 to a GET is broken, and Google would treat it as a 4xx and drop it. Where 422 touches SEO is URL submission. If IndexNow rejects your batch, check that every URL is on the same host as your key file. The IndexNow submitter lets you verify the key file before submitting.

How to fix it

As a client, read the response body: a good 422 names each field that failed and why. As an API developer, return machine-readable errors per field, as Laravel does by default:

HTTP/1.1 422 Unprocessable Content
Content-Type: application/json

{
  "message": "The email field must be a valid email address.",
  "errors": {
    "email": ["The email field must be a valid email address."]
  }
}

To confirm your public pages aren’t affected, run them through the HTTP status checker.

Frequently asked questions

What is the difference between 400 and 422?

400 means the request is malformed, for example invalid JSON. 422 means the request is well-formed, but the values fail validation or business rules.

Why does IndexNow return 422?

IndexNow uses 422 when the submitted URLs don’t belong to the host you submitted for, or when the key doesn’t match. Submit URLs from one host at a time, with the key file hosted on that same host.

Is “Unprocessable Entity” the same as “Unprocessable Content”?

Yes. Both are status 422. RFC 9110 renamed the original WebDAV reason phrase, and many frameworks still use the old name.