code: def from_status(cls, status_line, msg=None):
          
          method = getattr(cls, status_line.lower()[4:].replace(' ', '_'))
          return method(msg)
docs: Returns a class method from bottle.HTTPError.status_line attribute.
          Useful for patching `bottle.HTTPError` for web services.
  
          Args:
              status_line (str):  bottle.HTTPError.status_line text.
              msg: The message data for response.
  
          Returns:
              Class method based on status_line arg.
  
          Examples:
              >>> status_line = '401 Unauthorized'
              >>> error_msg = 'Get out!'
              >>> resp = WSResponse.from_status(status_line, error_msg)
              >>> resp['errors']
              ['Get out!']
              >>> resp['status_text']
              'Unauthorized'