title: How to find out specifics of 400 Http error in Java?
body: <p>I'm getting 400 errors trying to connect to a website.</p>
  
  <p>How do I set the connection to display why the server is rejecting me?</p>
  
  <pre><code>try {
  doc = Jsoup.connect(URL).timeout(10 * 30000).get();
  } catch (IOException ioe) {
  System.out.println("Error:" + ioe);
  }
  </code></pre>
  
  <p><a href="http://jsoup.org/apidocs/org/jsoup/Connection.html" rel="nofollow">http://jsoup.org/apidocs/org/jsoup/Connection.html</a></p>