def get_exit_status(http_status, follow=False):
 if ((300 <= http_status <= 399) and (not follow)):
  return ExitStatus.ERROR_HTTP_3XX
 elif (400 <= http_status <= 499):
  return ExitStatus.ERROR_HTTP_4XX
 elif (500 <= http_status <= 599):
  return ExitStatus.ERROR_HTTP_5XX
 else:
  return ExitStatus.OK

def get_exit_status ( http_status , follow = False ) : if ( ( 300 <= http_status <= 399 ) and ( not follow ) ) : return ExitStatus . ERROR_HTTP_3XX elif ( 400 <= http_status <= 499 ) : return ExitStatus . ERROR_HTTP_4XX elif ( 500 <= http_status <= 599 ) : return ExitStatus . ERROR_HTTP_5XX else : return ExitStatus . OK
translate http status code to exit status code .