HTTP 303 See Other vs 422 Unprocessable Content
HTTP 303 (See Other) is a 3xx Redirection response, while 422 (Unprocessable Content) is a 4xx Client Error response. 303 indicates that the server is redirecting to a different resource using GET, typically after a POST operation (Post/Redirect/Get pattern). In contrast, 422 means that the server understands the content type and syntax, but was unable to process the contained instructions. Common in API validation errors.
Description
The server is redirecting to a different resource using GET, typically after a POST operation (Post/Redirect/Get pattern).
When You See It
After form submissions to prevent resubmission on browser refresh.
How to Fix
Follow the Location header with a GET request. This is intentional — part of the PRG pattern.
Description
The server understands the content type and syntax, but was unable to process the contained instructions. Common in API validation errors.
When You See It
When form validation fails — correct syntax but invalid data (e.g., email format wrong, date in the past).
How to Fix
Check the response body for specific validation errors and correct the input data.
Key Differences
303 is a 3xx Redirection response, while 422 is a 4xx Client Error response.
HTTP 303: The server is redirecting to a different resource using GET, typically after a POST operation (Post/Redirect/Get pattern).
HTTP 422: The server understands the content type and syntax, but was unable to process the contained instructions. Common in API validation errors.
You encounter 303 when after form submissions to prevent resubmission on browser refresh.
You encounter 422 when when form validation fails — correct syntax but invalid data (e.g., email format wrong, date in the past).
When to Use Which
For 303 (See Other): Follow the Location header with a GET request. This is intentional — part of the PRG pattern. For 422 (Unprocessable Content): Check the response body for specific validation errors and correct the input data.