Catch proper exception, as thrown in HttpUrlConnectionImpl#execute