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

  1. ,

    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 user7499815
, 1 year ago
Server returned HTTP response code: 400 for URL: http://x.x.x.x/apply.cgi
via Stack Overflow by user2659694
, 1 year ago
Server returned HTTP response code: 400 for URL: https://localhost:9443/wso2/scim/Users/
via Stack Overflow by We are Borg
, 7 months ago
Server returned HTTP response code: 400 for URL: https://graph.facebook.com/oauth/access_token?client_id=ID&redirect_uri=http://localhost:8080/registerfacebook&client_secret=SECRET&code=SOME_CODE
via Stack Overflow by jaswanth
, 5 months ago
Server returned HTTP response code: 401 for URL: http://10.32.2.64/api/rest/recording/contact/upload
via Stack Overflow by Marshall S. Lee
, 7 months ago
Server returned HTTP response code: 401 for URL: http://updates.jenkins-ci.org/download/plugins/pipeline-model-definition/1.1.8/pipeline-model-definition.hpi
java.io.IOException: Server returned HTTP response code: 400 for URL: http://x.x.x.x/apply.cgi	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1876)	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)	at posthttpsample.PostHTTPSample.sendRequestPost(PostHTTPSample.java:52)	at posthttpsample.PostHTTPSample.main(PostHTTPSample.java:82)