java.io.IOException: Server returned HTTP response code: 400 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

,

401 means "Unauthorized", so there must be something with your credentials. You need to pass the authentication to let the server know its a valid user. Check whether the authentication details are provided.

Solutions on the web

via Stack Overflow by Dominik Mack
, 2 years ago
Server returned HTTP response code: 400 for URL: --
via Stack Overflow by Demaunt
, 3 months ago
Server returned HTTP response code: 403 for URL: https://anapioficeandfire.com/api/characters/583
via Stack Overflow by iCoder
, 9 months ago
Server returned HTTP response code: 403 for URL: https://www.nseindia.com/content/historical/EQUITIES/2015/FEB/cm25FEB2015bhav.csv.zip
via Stack Overflow by Priyanka
, 2 years ago
Server returned HTTP response code: 400 for URL:https://api.twitter.com/1.1/followers/ids.jsonscreen_name=*****&user_id=******
via Stack Overflow by Jblue
, 4 months ago
Server returned HTTP response code: 403 for URL: https://statsroyale.com/clan/99VUU8Y
via Stack Overflow by Christopher Dudley
, 2 months ago
Server returned HTTP response code: 403 for URL: https://www.kingjamesbibleonline.org/Inspirational-Images/large/Isaiah_55-6.jpg
java.io.IOException: Server returned HTTP response code: 400 for URL: --
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at com.model.Model.createTemp(Model.java:164)
at com.model.Model.checkFilter(Model.java:122)
at com.model.Model$1.actionPerformed(Model.java:50)

Users with the same issue

Once, 2 weeks ago
2 times, 3 months ago
Once, 4 months ago
4 times, 4 months ago
Once, 4 months ago

Write tip

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