WebmasterID logoWebmasterID
Crawl diagnostics

HTTP 422 Unprocessable Entity

HTTP 422 Unprocessable Entity (originally from WebDAV, RFC 4918, and listed in the IANA registry) means the server understood the request's content type and syntax but cannot process the contained instructions due to semantic errors — for example a valid JSON body that fails business-rule validation. It is widely used by APIs to signal validation failures, sitting between syntactic 400 and successful processing.

Verified against primary sources

What 422 means

422 Unprocessable Entity originated in WebDAV (RFC 4918) and is recorded in the IANA HTTP status code registry. It signals that the server understood the content type and the syntax was valid, but it cannot process the contained instructions because of semantic errors.

The canonical example is a request body that is well-formed JSON yet violates the resource's rules — a missing required field, an out-of-range value, or a value that fails a uniqueness check.

422 versus 400 and good API design

The practical distinction is syntactic versus semantic. 400 Bad Request covers requests the server cannot parse at all — malformed JSON, bad framing. 422 covers requests that parse cleanly but fail validation. Many frameworks adopt 422 for form and API validation so clients can tell 'I sent garbage' from 'I sent valid data that broke a rule'.

Good practice is to return a structured body listing which fields failed and why, so the client can fix the input precisely rather than guessing.

How it appears in analytics and logs

A 422 means the request parsed fine but failed validation rules. It is an API/write-path signal about input semantics, not about page indexability. Crawlers fetching pages do not normally encounter it.

Diagnostic use case

Recognise 422 on API endpoints as a semantic validation failure (not a malformed request), and return field-level error detail so clients can correct the input.

What WebmasterID can help detect

WebmasterID surfaces status codes for traffic, helping you distinguish semantic validation failures (422) on form/API endpoints from the page crawling that affects search visibility.

Common mistakes

Privacy and accuracy notes

A 422 is a validation-outcome status with no inherent personal data. WebmasterID records the status without storing the submitted field values.

Frequently asked questions

When should an API return 422 instead of 400?
Use 400 when the request cannot be parsed (malformed syntax) and 422 when it parses correctly but fails semantic validation, such as a missing required field or an invalid value.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.