def parse_403_error(response)
      case JSON.parse(response.body)["error"]["message"]
        when "Forbidden"                        then raise ForbiddenError, response.body
        when "Daily Limit Exceeded"             then raise DailyLimitExceededError, response.body
        when "User Rate Limit Exceeded"         then raise UserRateLimitExceededError, response.body
        when "Rate Limit Exceeded"              then raise RateLimitExceededError, response.body
        when "Calendar usage limits exceeded."  then raise CalendarUsageLimitExceededError, response.body
        else                                    raise ForbiddenError, response.body
      end      
    end
def parse_403_error(response)
      case JSON.parse(response.body)["error"]["message"]
        when "Forbidden"                        then raise ForbiddenError, response.body
        when "Daily Limit Exceeded"             then raise DailyLimitExceededError, response.body
        when "User Rate Limit Exceeded"         then raise UserRateLimitExceededError, response.body
        when "Rate Limit Exceeded"              then raise RateLimitExceededError, response.body
        when "Calendar usage limits exceeded."  then raise CalendarUsageLimitExceededError, response.body
        else                                    raise ForbiddenError, response.body
      end      
    end
Utility method to centralize handling of 403 errors.