def _codeToMessage(code):
 try:
  return RESPONSES.get(int(code))
 except (ValueError, AttributeError):
  return None

def _codeToMessage ( code ) : try : return RESPONSES . get ( int ( code ) ) except ( ValueError , AttributeError ) : return None
returns the response message corresponding to an http code .