Python3.11 handle HttpException raised alongwith the status code I see one of the methods in python uses raise_for_status():