Website Errors

How to Fix 422 Unprocessable Entity Error

422 Unprocessable EntityPlain English: the server understood your request, but it cannot process it because something in the data breaks its rules. Usually a missing field, a wrong format, or a value that fails validation.
Quick answer: A 422 Unprocessable Entity error means the server understood your request but cannot process it. Read the validation message, fill in every required field, fix any values in the wrong format, and resubmit. Developers should check that form fields and server validation rules match, and that error messages name the exact field that failed. The full steps are below.

What 422 Unprocessable Entity means

HTTP status 422 sounds technical, but the idea is simple. When you submit a form, upload a file, or send data to an app, the server checks that data against a set of rules: which fields are required, what format each value must take, and which combinations are allowed. If the request arrives intact and readable but breaks one of those rules, the server answers with 422 Unprocessable Entity. It understood you perfectly well; it just cannot accept what you sent.

You will meet 422 errors most often on sign-up forms, checkout pages, profile editors, file uploads, and API calls. The message may appear as 422 Unprocessable Entity, Unprocessable Content (the newer name for the same status), or a form error listing the fields that failed. The good news is that a 422 is one of the most fixable errors on the web: the server is telling you exactly what is wrong, and correcting that data almost always clears it. It is not a broken website, a bad connection, or a hacked account — it is a data mismatch, and it usually takes one careful pass over the form to resolve.

Common causes

How to fix the 422 Unprocessable Entity error — step by step

Start with the visitor steps (1–5). If you own the site or the API, step 6 is where persistent 422 errors get fixed.

  1. Read the validation message carefully. A 422 response almost always carries a message that names the problem, so do not guess. Read the error shown on the page, and if you are working with an API, open the full response body: it usually lists exactly which fields failed and why, such as email is required, price must be a number, or start date must be before end date. Note the field names and the rules they broke, because those messages are your fix list. If the page shows only a generic 422 message, press F12, open the Network tab, click the failed request, and read the Response tab for the detailed validation errors.
  2. Fill in every required field and fix the flagged values. Go back to the form or request and check every field the error flagged. Fill in any required field you left blank, and correct values that break the stated rules: an email address must contain an @ sign and a domain, a phone number must match the expected format, a password must meet the minimum length, and a number field must not contain letters or symbols. For dropdowns and checkboxes, make sure you actually selected an option rather than leaving the placeholder choice in place. Fix one field at a time and resubmit, so you can see which correction cleared the error.
  3. Check data formats, dates, and file uploads. Many 422 errors come from a value that looks right to a person but is wrong for the server. Dates must match the expected format, such as YYYY-MM-DD, and a future date will fail a rule that requires a past date. Amounts must use a plain number without currency symbols or commas. For file uploads, check the allowed file types and the maximum size: a 20 MB video will fail a 10 MB limit, and a .heic photo will fail a rule that only accepts .jpg and .png. Resize or convert the file, then upload it again.
  4. Fix JSON syntax and headers for API requests. If you are sending an API request, a 422 can mean the data itself is malformed even though the server understood the request. Check that your JSON has matching braces and brackets, that every string is wrapped in double quotes, and that there is no trailing comma after the last item. Make sure the Content-Type header is set to application/json when you send JSON, and that the body is not accidentally sent as form data. Paste the body into a JSON validator to catch syntax errors before you resend the request.
  5. Refresh, clear stale form data, and resubmit once. A form that was open for a long time can carry stale values, such as an expired option, a deleted category, or a session token that no longer matches the server. Refresh the page to load the current options, re-enter your values, and submit again. If the form still fails, clear the site cookies by pressing Ctrl + Shift + Delete, checking Cookies and other site data for that site, and clicking Clear data, then sign in again and retry. Avoid hammering the submit button: repeated identical submissions will return the same 422 and can trigger rate limits.
  6. Site owner: fix the validation rules and check the logs. If you own the site or API, a wave of 422 errors usually points at a validation rule that is too strict or out of sync with your form. Compare the fields your form sends with the fields your server validates, and check for a rule that rejects valid input, such as a date rule that rejects today's date or a size limit lower than your form promises. Check the server logs for the exact payloads that failed, and make the error messages name the field and the rule so users can fix their input. If a recent deploy changed a rule or a field name, roll that change back or update the form to match, then test a full submission end to end.

Did this fix it? Quick checklist

If the error only appears on one form while others work fine, that form is the problem, not your account or connection: compare its fields against the error message one by one. If you are a developer and the same payload fails in production but works locally, check for a validation rule, database constraint, or environment difference between the two — a rule that exists only on the live server is a common culprit.

Frequently asked questions

What does a 422 Unprocessable Entity error mean?

It means the server understood your request and its syntax is fine, but the content cannot be processed because it fails the server's rules. Typical causes are a missing required field, a value in the wrong format, or data that breaks a business rule, such as an end date before a start date. The fix is to correct the flagged data and resubmit.

What is the difference between a 422 and a 400 error?

A 400 Bad Request means the request itself is malformed, so the server cannot even parse it. A 422 means the request is well formed and readable, but its content fails validation. In practice, a 400 points at broken syntax, while a 422 points at a specific field or value that needs correcting.

Is a 422 error caused by my internet connection?

No. A 422 error means your request reached the server successfully, so your connection is working. The problem is the data in the request, not the network. Switching networks or restarting your router will not fix it; correcting the flagged fields will.

How do website owners fix a persistent 422 error?

Check that the form and the server validation agree on field names, required fields, formats, and limits. Make error messages name the exact field and rule that failed, check the server logs for the failing payloads, and test a complete submission after every validation change. A rule that rejects valid input is a bug in the validation, not in the user.