lib/http/protocol/error.rb in http-protocol-0.8.1 vs lib/http/protocol/error.rb in http-protocol-0.9.0
- old
+ new
@@ -21,10 +21,14 @@
module HTTP
module Protocol
class Error < StandardError
end
-
+
+ # The request was invalid/malformed in some way.
+ class BadRequest < Error
+ end
+
# Raised if connection header is missing or invalid indicating that
# this is an invalid HTTP 2.0 request - no frames are emitted and the
# connection must be aborted.
class HandshakeError < Error
end