module HTTP::Status
def self.redirect?(status)
Returns true if the given status is thought to be redirect.
def self.redirect?(status) REDIRECT_STATUS.include?(status) end
def self.successful?(status)
Returns true if the given status represents successful HTTP response.
def self.successful?(status) SUCCESSFUL_STATUS.include?(status) end