def from_status(status, message=None, extra=None):
if status in HTTP_STATUS_CODES:<EOL><INDENT>return HTTP_STATUS_CODES[status](message=message, extra=extra)<EOL><DEDENT>else:<EOL><INDENT>return Error(<EOL>code=status, message=message if message else "<STR_LIT>",<EOL>extra=extra<EOL>)<EOL><DEDENT>
Try to create an error from status code

    :param int status: HTTP status
    :param str message: Body content
    :param dict extra: Additional info
    :return: An error
    :rtype: cdumay_rest_client.errors.Error