Skip to content

Add status code convenience methods to response class #20

Description

@roback

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions