title: why server return error code 502
body: <p>This is my code for for reading file from <a href="http://dbpedia.org/data/Germany.json" rel="nofollow">URL</a>.</p>
  
  <pre><code> URL url = new URL(urlString);
   reader = new BufferedReader(new InputStreamReader(url.openStream()));
  </code></pre>
  
  <p>But the problem is-</p>
  
  <pre><code>java.io.IOException: Server returned HTTP response code: 502 for 
  URL: http://dbpedia.org/data/Germany.json
  </code></pre>
  
  <p>This error does not occur every-time. can anybody help me?  </p>