aboutsummaryrefslogtreecommitdiff
path: root/gnu-taler-error-codes/registry.rec
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-05-14 00:16:04 +0200
committerChristian Grothoff <christian@grothoff.org>2020-05-14 00:16:04 +0200
commite1b5f8e912b3aaca1719c5fd08c2152d9f7d5113 (patch)
treef2fd32f8d33ebbd21107d75547c29946fe21375c /gnu-taler-error-codes/registry.rec
parentd62efd6aaa7a408e04484f26d97b3b74114cc4b6 (diff)
downloadgana-e1b5f8e912b3aaca1719c5fd08c2152d9f7d5113.tar.gz
gana-e1b5f8e912b3aaca1719c5fd08c2152d9f7d5113.zip
start taler EC registry
Diffstat (limited to 'gnu-taler-error-codes/registry.rec')
-rw-r--r--gnu-taler-error-codes/registry.rec37
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
24Value: 0
25Name: NONE
26Description: No error (success).
27HttpStatus: 0
28
29Value: 1
30Name: TEST
31Description: Testing
32HttpStatus: 200
33
34Value: 2
35Name: TEST2
36Description: Invalid
37HttpStatus: 199