Http exception in jsoup.
org.jsoup.HttpStatusException: HTTP error fetching URL. Status=503, URL=http://google.com
at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:418)
at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:393)
at org.jsoup.helper.HttpConnection.execute(HttpConnection.java:159)
at org.jsoup.helper.HttpConnection.get(HttpConnection.java:148)
Document doc;
doc = Jsoup.connect("http://google.com").timeout(300000).get();
Tried various solutions but none of them worked.