File: error.rb

package info (click to toggle)
ruby-protocol-http1 0.14.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 264 kB
  • sloc: ruby: 1,146; makefile: 4
file content (26 lines) | stat: -rw-r--r-- 439 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2019-2022, by Samuel Williams.

require 'protocol/http/error'

module Protocol
	module HTTP1
		class Error < HTTP::Error
		end
		
		class InvalidRequest < Error
		end
		
		# The request was parsed correctly, but was invalid for some other reason.
		class BadRequest < Error
		end
		
		class BadHeader < Error
		end
		
		class BadResponse < Error
		end
	end
end