@classmethod
def from_response(cls, response):
    """Return the corresponding error from a response."""
    message = response['error']['en']
    http_code = response['http_code']
    error_code = response['error_code']
    klass = cls.ERRORS.get(error_code)
    return klass(message=message, http_code=http_code, error_code=
        error_code, response=response)
