class Protocol::HTTP2::Error
Status codes as defined by <tools.ietf.org/html/rfc7540#section-7>.
def self.message_for(code)
@parameter code [Integer] The HTTP/2 error code.
Get the message for a given HTTP/2 error code.
def self.message_for(code) return MESSAGES.fetch(code) do # Unknown error codes are allowed by the protocol, but don't have a static message. "Unknown code: #{code}!" end end