aboutsummaryrefslogtreecommitdiff
path: root/thp/errors.go
blob: 33ae89f8ec1aa37c3cba984d0a4e10a7aec133e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package thp

var ErrCodes = map[int]string{
	100: "Invalid request type: client request was not a HTTP GET",
	101: "Missing info_hash",
	102: "Missing peer_id",
	103: "Missing port",
	150: "Invalid infohash: infohash is not 20 bytes long",
	151: "Invalid peerid: peerid is not 20 bytes long",
	152: "Invalid numwant: client requested more peers than allowed by tracker",
	200: "info_hash not found in the database",
	500: "Client sent an eventless request before the specified time",
	900: "Generic error",
}