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 Sagar Sachdeva
, 1 year ago
Server returned HTTP response code: 400 for URL: http://dummyURL.com
via GitHub by kayc01
, 8 months ago
Server returned HTTP response code: 504 for URL: http://tmi.twitch.tv/group/user/abkayckay/chatters
via Stack Overflow by Michael Robinson
, 1 year ago
via Stack Overflow by GD_Java
, 1 year ago
Server returned HTTP response code: 415 for URL: http://localhost:8181/restServer/rest/TestWebService/startProcess/
via GitHub by bradvido
, 1 year ago
Server returned HTTP response code: 500 for URL: http://127.0.0.1:8888
via GitHub by Usercreatedname
, 1 year ago
Server returned HTTP response code: 400 for URL: http://www.google.com/speech-api/v2/recognize?client=chromium&output=json&lang=en-US&maxresults=4
java.io.IOException: Server returned HTTP response code: 400 for URL: http://dummyURL.com	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)	at tcd.edu.repositoryextractor.PullObject.fetchJSONString(PullObject.java:23)	at tcd.edu.repositoryextractor.PullObjectTest.testPullObjectWithValidString(PullObjectTest.java:64)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)	at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)	at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)	at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)	at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)	at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)	at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)	at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)	at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)	at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)