aboutsummaryrefslogtreecommitdiff
path: root/gnunet-error-codes/registry.rec
diff options
context:
space:
mode:
Diffstat (limited to 'gnunet-error-codes/registry.rec')
-rw-r--r--gnunet-error-codes/registry.rec136
1 files changed, 136 insertions, 0 deletions
diff --git a/gnunet-error-codes/registry.rec b/gnunet-error-codes/registry.rec
new file mode 100644
index 0000000..e833bb5
--- /dev/null
+++ b/gnunet-error-codes/registry.rec
@@ -0,0 +1,136 @@
1# -*- mode: rec -*-
2#
3# Registry for GNUnet errors.
4#
5%rec: GnunetErrorCode
6%key: Value
7%typedef: ValueRange_t range 0 9999
8%type: Value ValueRange_t
9%mandatory: Value
10%typedef: Description_t regexp |^[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_\(\)\.,;!"':#\/ -]*$|
11%type: Description Description_t
12%mandatory: Description
13%typedef: Name_t regexp /^[ABCDEFGHIJKLMNOPQRSTUVWXYZ_][ABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789]*$/
14%type: Name Name_t
15%unique: Name
16%mandatory: Name
17# A status of 0 means no HTTP status is associated
18%type: HttpStatus rec HttpStatusCode
19%mandatory: HttpStatus
20%sort: Value
21
22Value: 0
23Name: NONE
24Description: No error (success).
25HttpStatus: 0
26
27Value: 1
28Name: UNKNOWN
29Description: Unknown and unspecified error.
30HttpStatus: 500
31
32Value: 101
33Name: SERVICE_COMMUNICATION_FAILED
34Description: Communication with service failed.
35HttpStatus: 500
36
37# IDENTITY Error Codes
38
39Value: 200
40Name: IDENTITY_NOT_FOUND
41Description: Ego not found.
42HttpStatus: 404
43
44Value: 201
45Name: IDENTITY_NAME_CONFLICT
46Description: Identifier already in use for another ego.
47HttpStatus: 409
48
49Value: 202
50Name: IDENTITY_INVALID
51Description: The given ego is invalid or malformed.
52HttpStatus: 500
53
54# NAMESTORE Error Codes
55
56Value: 5000
57Name: NAMESTORE_UNKNOWN
58Description: Unknown namestore error.
59HttpStatus: 500
60
61Value: 5001
62Name: NAMESTORE_ITERATION_FAILED
63Description: Zone iteration failed.
64HttpStatus: 500
65
66Value: 5002
67Name: NAMESTORE_ZONE_NOT_FOUND
68Description: Zone not found.
69HttpStatus: 404
70
71Value: 5003
72Name: NAMESTORE_RECORD_NOT_FOUND
73Description: Record not found.
74HttpStatus: 404
75
76Value: 5004
77Name: NAMESTORE_RECORD_DELETE_FAILED
78Description: Zone iteration failed.
79HttpStatus: 500
80
81Value: 5005
82Name: NAMESTORE_ZONE_EMPTY
83Description: Zone does not contain any records.
84HttpStatus: 404
85
86Value: 5006
87Name: NAMESTORE_LOOKUP_ERROR
88Description: Failed to lookup record.
89HttpStatus: 500
90
91Value: 5007
92Name: NAMESTORE_NO_RECORDS_GIVEN
93Description: No records given.
94HttpStatus: 400
95
96Value: 5008
97Name: NAMESTORE_RECORD_DATA_INVALID
98Description: Record data invalid.
99HttpStatus: 400
100
101Value: 5009
102Name: NAMESTORE_NO_LABEL_GIVEN
103Description: No label given.
104HttpStatus: 400
105
106Value: 5010
107Name: NAMESTORE_NO_RESULTS
108Description: No results given.
109HttpStatus: 404
110
111Value: 5011
112Name: NAMESTORE_RECORD_EXISTS
113Description: Record already exists.
114HttpStatus: 409
115
116Value: 5012
117Name: NAMESTORE_RECORD_TOO_BIG
118Description: Record size exceeds maximum limit.
119HttpStatus: 500
120
121Value: 5013
122Name: NAMESTORE_BACKEND_FAILED
123Description: There was an error in the database backend.
124HttpStatus: 500
125
126Value: 5014
127Name: NAMESTORE_STORE_FAILED
128Description: Failed to store the given records.
129HttpStatus: 500
130
131Value: 5015
132Name: NAMESTORE_LABEL_INVALID
133Description: Label invalid or malformed.
134HttpStatus: 400
135
136