@staticmethod
def get_status_code(status):
    """
        Return http status code as int, even if status is of the form "201 Created" for example.
        :param status: http status code, int or string.
        :return: code as int
        """
    if isinstance(status, int):
        return status
    else:
        return int(status.split(' ')[0])
