aboutsummaryrefslogtreecommitdiff
path: root/thp/errors.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-06-12 14:05:37 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-06-12 14:05:37 +0200
commita4ad9311bba739b79f05959d9701633c79b7017d (patch)
treeed68c9afed7396608d7a05e2fad46e1ceab31773 /thp/errors.go
parentb07fbf65b5badc6af93c8ca804acce8f7186c8c6 (diff)
rename modules
Diffstat (limited to 'thp/errors.go')
-rw-r--r--thp/errors.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/thp/errors.go b/thp/errors.go
deleted file mode 100644
index 33ae89f..0000000
--- a/thp/errors.go
+++ /dev/null
@@ -1,14 +0,0 @@
-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",
-}