diff options
Diffstat (limited to 'gnu-taler-error-codes/registry.rec')
-rw-r--r-- | gnu-taler-error-codes/registry.rec | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu-taler-error-codes/registry.rec b/gnu-taler-error-codes/registry.rec new file mode 100644 index 0000000..a3c52db --- /dev/null +++ b/gnu-taler-error-codes/registry.rec | |||
@@ -0,0 +1,37 @@ | |||
1 | # -*- mode: rec -*- | ||
2 | # | ||
3 | # Registry for HTTP status codes | ||
4 | # | ||
5 | %rec: TalerErrorCode | ||
6 | %key: Value | ||
7 | %typedef: ValueRange_t range 0 9999 | ||
8 | %constraint: ( Value < 100 ) || ( Value > 999 ) | ||
9 | %type: Value ValueRange_t | ||
10 | %mandatory: Value | ||
11 | %typedef: Description_t regexp /^[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_\(\)\. -]*$/ | ||
12 | %type: Description Description_t | ||
13 | %mandatory: Description | ||
14 | %typedef: Name_t regexp /^[ABCDEFGHIJKLMNOPQRSTUVWXYZ_][ABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789]*$/ | ||
15 | %type: Name Name_t | ||
16 | %unique: Name | ||
17 | %mandatory: Name | ||
18 | # A status of 0 means not an HTTP status (i.e. created client-side) | ||
19 | %typedef: HttpStatus_t range 0 599 | ||
20 | %type: HttpStatus rec HttpStatusCode | ||
21 | %mandatory: HttpStatus | ||
22 | %sort: Value | ||
23 | |||
24 | Value: 0 | ||
25 | Name: NONE | ||
26 | Description: No error (success). | ||
27 | HttpStatus: 0 | ||
28 | |||
29 | Value: 1 | ||
30 | Name: TEST | ||
31 | Description: Testing | ||
32 | HttpStatus: 200 | ||
33 | |||
34 | Value: 2 | ||
35 | Name: TEST2 | ||
36 | Description: Invalid | ||
37 | HttpStatus: 199 | ||