module Roda::RodaPlugins::SinatraHelpers::ResponseMethods

def client_error?

Whether or not the status is set to 4xx. Returns nil if status not yet set.
def client_error?
  @status.between?(400, 499) if @status
end