How can I avoid exceptions from `urllib.request.urlopen` if `response.status_code` is not 200? Now it raise `URLError` or `HTTPError` based on request status.

Is there any other way to make request with python3 basic libs?

How can I get response headers if `status_code != 200` ?