module Roda::RodaPlugins::StatusHandler::ClassMethods

def freeze

Freeze the hash of status handlers so that there can be no thread safety issues at runtime.
def freeze
  opts[:status_handler].freeze
  super
end

def status_handler(code, &block)

Install the given block as a status handler for the given HTTP response code.
def status_handler(code, &block)
  opts[:status_handler][code] = block
end