def raise_error
      klass = case @response.to_s
        when "RestClient::BadRequest" then TodaysPlan::BadRequestError
        when "RestClient::Unauthorized" then  TodaysPlan::UnauthorizedError
        when "RestClient::NotFound" then TodaysPlan::NotFoundError
        else
          TodaysPlan::ServerError
        end
      raise klass.new(body['code'], body['message'], body['resolve'])
    end
def raise_error
      klass = case @response.to_s
        when "RestClient::BadRequest" then TodaysPlan::BadRequestError
        when "RestClient::Unauthorized" then  TodaysPlan::UnauthorizedError
        when "RestClient::NotFound" then TodaysPlan::NotFoundError
        else
          TodaysPlan::ServerError
        end
      raise klass.new(body['code'], body['message'], body['resolve'])
    end
Internal: Raise an error with the class depending on @response.

 Returns an Array with arguments.