File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -10,21 +10,20 @@ module HTTP1
10
10
class Error < HTTP ::Error
11
11
end
12
12
13
- class InvalidRequest < Error
14
- end
15
-
16
- # The specified content length and the given content's length do not match.
17
- class ContentLengthError < Error
13
+ # The request was not able to be parsed correctly, or failed some kind of validation.
14
+ class BadRequest < Error
18
15
end
19
16
20
- # The request was parsed correctly, but was invalid for some other reason .
21
- class BadRequest < Error
17
+ # A header name or value was invalid, e.g. contains invalid characters .
18
+ class BadHeader < BadRequest
22
19
end
23
20
24
- class BadHeader < Error
21
+ # Indicates that the request is invalid for some reason, e.g. syntax error, invalid headers, etc.
22
+ class InvalidRequest < BadRequest
25
23
end
26
24
27
- class BadResponse < Error
25
+ # The specified content length and the given content's length do not match.
26
+ class ContentLengthError < Error
28
27
end
29
28
end
30
29
end
You can’t perform that action at this time.
0 commit comments