422

HTTP 422 Unprocessable Content

4xx Client Error

  1. Home
  2. > HTTP Status Codes >
  3. > 4xx >
  4. 422
4xx Client Error RFC 9110, Section 15.5.21

What is HTTP 422 Unprocessable Content?

The 422 (Unprocessable Content) status code indicates that the server understands the content type and syntax of the request body but was unable to process the contained instructions. In REST APIs, this is commonly used for validation errors — the request format is correct but the data is invalid.

Common Use Cases

  • Form validation errors in API
  • Missing required fields in request body
  • Invalid data format or constraints violation
Help2Code Logo
Menu