lib/protocol/http1/error.rb in protocol-http1-0.23.0 vs lib/protocol/http1/error.rb in protocol-http1-0.24.0

- old
+ new

@@ -8,9 +8,13 @@ module Protocol module HTTP1 class Error < HTTP::Error end + # The protocol was violated in some way, e.g. trying to write a request while reading a response. + class ProtocolError < Error + end + # The request was not able to be parsed correctly, or failed some kind of validation. class BadRequest < Error end # A header name or value was invalid, e.g. contains invalid characters.