From a4ad9311bba739b79f05959d9701633c79b7017d Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 12 Jun 2016 14:05:37 +0200 Subject: rename modules --- tracker/errors.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tracker/errors.go (limited to 'tracker/errors.go') diff --git a/tracker/errors.go b/tracker/errors.go new file mode 100644 index 0000000..75f75a9 --- /dev/null +++ b/tracker/errors.go @@ -0,0 +1,14 @@ +package tracker + +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", +} -- cgit v1.2.3