sS tryToReadErrorStreamFromURLConnection(URLConnection conn) null on error { ret stream2string(conn.getErrorStream()); // TODO: ensure some max length }