def error_class_for_http_status(status):
    """Return the appropriate `ResponseError` subclass for the given
    HTTP status code."""
    try:
        return error_classes[status]
    except __HOLE__:
        def new_status_error(xml_response):
            return UnexpectedStatusError(status, xml_response)
        return new_status_error
dataset/ETHPy150Open recurly/recurly-client-python/recurly/errors.py/error_class_for_http_status