# File lib/ftw/response.rb, line 72 def status=(code) code = code.to_i if !code.is_a?(Fixnum) # TODO(sissel): Validate that 'code' is a 3 digit number @status = code # Attempt to set the reason if the status code has a known reason # recommendation. If one is not found, default to the current reason. @reason = STATUS_REASON_MAP.fetch(@status, @reason) end