# File lib/em-socksify/errors.rb, line 22
      def self.for_response_code(code)
        case code.is_a?(String) ? code.ord : code
        when 1 then ServerFailure
        when 2 then NotAllowed
        when 3 then NetworkUnreachable
        when 4 then HostUnreachable
        when 5 then ConnectionRefused
        when 6 then TTLExpired
        when 7 then CommandNotSupported
        when 8 then AddressTypeNotSupported
        else self
        end
      end