lib/protocol/http1/error.rb in protocol-http1-0.14.6 vs lib/protocol/http1/error.rb in protocol-http1-0.15.0

- old
+ new

@@ -1,17 +1,21 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2019-2022, by Samuel Williams. +# Copyright, 2019-2023, by Samuel Williams. require 'protocol/http/error' module Protocol module HTTP1 class Error < HTTP::Error end class InvalidRequest < Error + end + + # The specified content length and the given content's length do not match. + class ContentLengthError < Error end # The request was parsed correctly, but was invalid for some other reason. class BadRequest < Error end