module Sinatra::Helpers

def client_error?

whether or not the status is set to 4xx
def client_error?
  status.between? 400, 499
end