In basil we have the following:
def redirect?(response)
response.status.between?(300, 399)
end
def ok?(response)
response.status.between?(200, 299)
end
It would be nice to have these methods (and possibly some other similar ones) on the Response class here.