java.io.IOException: Server returned HTTP response code: 422 for URL:

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Check if you didn't set RequestProperty Content-Type to the wrong type or if you're trying to send the wrong file to the server.

Solutions on the web

via Coderanch by Mano Krrish, 1 year ago
Server returned HTTP response code: 422 for URL:
via Oracle Community by 843802, 1 year ago
Server returned HTTP response code: 500 for URL: https://
via Stack Overflow by Elnino
, 4 months ago
Server returned HTTP response code: 504 for URL: someurl
via Stack Overflow by ck1221
, 2 years ago
Server returned HTTP response code: 400 for URL: https://MyStoreID.order.store.yahooapis.com/V1/order
via Stack Overflow by The Architect
, 6 months ago
Server returned HTTP response code: 401 for URL: https://myserver.com/rest/endpoint
via mathworks.com by Unknown author, 1 year ago
Server returned HTTP response code: 401 for URL: https://api.twitter.com/1.1/statuses/update.json
java.io.IOException: Server returned HTTP response code: 422 for URL:
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 2 years ago
70 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.