Troubleshooting Center
Menu
← All guides

Machine translation · Korean original

Fix HTTP 422 Unprocessable Content by reading the validation message and correcting the input

Sign showing event application with date condition and 422 error
Application verification screen example

On the website 422 Unprocessable Content appears, find the item pointed out in the error message before pressing the submit button again. HTTP 422 means that the server understood the format and syntax of the request body, but was unable to process the instructions within it. If you send the same value as is, the same result is expected. Modify the values ​​according to the guided conditions and check the submission results.

Read the verification message following the number

Leave the error screen on your computer or phone as is and read the sentence under the number 422. There may be a short prompt at the top of the page, or a reason may appear just below the input field. Look for ‘Unable to submit’ followed by the item name, acceptable values, and examples. When you close the screen, you may have to rewrite even the long sentences you typed.

Screen showing 422 verification instructions for applications with an end date earlier than the start date
Verification screen example · Check the order of end date and start date.

For example, in your event application, let's say you selected November 29th as the start date and November 28th as the end date. Both dates exist in the calendar, but they do not meet the service condition of ‘the end date must be after the start date’. You need to check the date relationship required by the server and correct the difference from the actual event schedule. If you postpone it by a single day and pass it, an incorrect application will remain.

This date guide is an example of what one service might look like. The number 422 does not mean that the end date is wrong. Some sites point to your membership number, while other services point to the file contents. Even if the person receiving the error sees the same number, the value to be modified may be different, so give priority to specific text on your screen.

Compare the input box associated with the specified value

If you find an input box marked as a problem, do not delete it right away, but start by reading the current value. If it is a date, look at the start date and end date as a pair, and if it is a code, check the number of characters or allowable characters indicated by the service. Please enter a value that matches both the applicant's actual information and the requirements in the input field. There is no need to re-enter the full name or contact information that you have already entered correctly.

Screen before submitting after revising the end date to November 30th according to the notice schedule
Example of correction screen · Compare the corrected values with the actual notice schedule and submit.

In our example, the actual schedule listed in the event notice is November 29th to 30th. Leave the start date as is and change the end date to 30 days. After pressing a day on the mobile calendar, see if the expected year and month are displayed in the input field even when the selection window is closed. On screens where the notation order is different for each country, it is safer to check the date selected on the calendar and the final confirmation text one more time.

Clues in the message value to match next action
Date order information Start and end dates Modify to fit your actual schedule
Conditions for specific fields Corresponding input values and examples Enter values that meet the conditions
Show only 422 numbers Detailed information on the screen Check support documents or contact information

If you have selected an item from a list, do not send it as is just because it has a name similar to the letters you entered. Make sure you actually selected the option you needed. Conversely, do not arbitrarily omit special characters or change the name notation in spaces without explanation. If you don't know what constraints the service applied, the more you change multiple fields at once, the more difficult it is to know which value was the problem.

Check message and field name in API response

If you are sending data to a program instead of the screen, read the body of the returned response after the status line 422. In MDN’s example of updating file content, the message says ‘content is not valid Base64’. This is not a clue that the entire request was not read, but that the value entered in the content field did not meet the Base64 rules required by the service.

The server in that example does not accept Base64 values ​​with line breaks. What needs to be fixed is not the type of JSON that contains the request body, but the encoding method of the content value. Make sure you re-encode the source material as required by the service and use the option to add line breaks in the results. Not all 422s received from other services can be interpreted as Base64 problems.

Distinguish between sent text and returned text This will speed up the inspection. The message in the response is the reason explained by the service, and the target of modification is the value I want to send. If you have a help address within your message, match the example with the required fields for that task. Rather than changing identification values ​​or account settings that point to other data, it is more accurate to look at the fields directly specified in the response.

Check the actual submission result after editing

Return to the original input screen, check if the changed values ​​remain, and then run Submit once. Don't judge success just by the fact that the warning message disappears. If it is an application, check whether the receipt number or completion status is visible, and if it is a document update, check whether the original content has changed to the expected value. If you return to the list and are unsure as to whether or not it has been accepted, open my application history first.

In paid orders or tasks that go through multiple steps, work may have been completed in the previous step. For example, just because 422 appears while saving a delivery request, you cannot assume that the order itself was not created. If you have an order number or approval history that has already been issued, check which steps are left based on that and then edit only the relevant items. Re-ordering from scratch may create duplication.

If a different field name appears after editing, compare it to the first phrase. If the service only tells you one item at a time, it may give you a new idea of ​​where to fix it next time. If the same item still appears, check first whether the changed value is reflected on the screen or whether you leave the page before saving and return to the previous value.

If there is no detailed reason, organize what you have checked.

If the guidance is only one line ‘422’, it is difficult to determine from the outside which input value is the problem. Record the time and time when you saw the error, what menu you used, and what action was followed. ‘I changed the end date and submitted it at a certain stage of the event application, but the same 422 was displayed. Asking questions such as ‘Can you confirm the acceptance criteria for this item?’ can help you narrow down the scope of work.

When attaching a screen, you can leave only the part where the item name and verification text are visible. There is no need to send passwords, authentication tokens, the applicant's personal information, or the entire original file. If the operator informs you of the permission conditions, change it to a value suitable for the original purpose and check again. The final criterion is not whether the number has disappeared, but whether the date you actually applied or what you saved matches the desired result.

official data · MDN · 422 Unprocessable Content

official help

Check official documentation ·

Inspection information

public status
public
Document inspection date
Scheduled for next review
direct reproduction
no record

This article was written based on official documents. We don't represent things as if we experienced them unless we reproduced them ourselves.