1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
require 'nickserver/response' module Nickserver class ErrorResponse < Nickserver::Response def initialize(message) @status = 500 @message = message + "\n" end def content "#{status} #{message}" end protected attr_reader :message end end