module Sinatra::Helpers

def server_error?

whether or not the status is set to 5xx
def server_error?
  status.between? 500, 599
end