# File lib/socksify.rb, line 70 def self.for_response_code(code) case code when 1 ServerFailure when 2 NotAllowed when 3 NetworkUnreachable when 4 HostUnreachable when 5 ConnectionRefused when 6 TTLExpired when 7 CommandNotSupported when 8 AddressTypeNotSupported else self end end