# File protocol.rb, line 766 def set_error(code,reason) @errorcode=code @error=reason @type="error" self end