aboutsummaryrefslogtreecommitdiff
path: root/http-status-codes/types.rec
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-05-13 23:35:01 +0200
committerChristian Grothoff <christian@grothoff.org>2020-05-13 23:35:01 +0200
commitd62efd6aaa7a408e04484f26d97b3b74114cc4b6 (patch)
tree5340aded408bd1f523c35c496fcc81211096c921 /http-status-codes/types.rec
parent56eafb8f94157eecca4410ff6924715fe8328386 (diff)
downloadgana-d62efd6aaa7a408e04484f26d97b3b74114cc4b6.tar.gz
gana-d62efd6aaa7a408e04484f26d97b3b74114cc4b6.zip
setup http status code registry
Diffstat (limited to 'http-status-codes/types.rec')
-rw-r--r--http-status-codes/types.rec19
1 files changed, 19 insertions, 0 deletions
diff --git a/http-status-codes/types.rec b/http-status-codes/types.rec
new file mode 100644
index 0000000..431a9b1
--- /dev/null
+++ b/http-status-codes/types.rec
@@ -0,0 +1,19 @@
1# -*- mode: rec -*-
2#
3# Registry for HTTP status codes
4#
5%rec: HttpStatusCode
6%key: Value
7%typedef: ValueRange_t range 100 599
8%type: Value ValueRange_t
9%mandatory: Value
10%typedef: Description_t regexp /^[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_\(\) -]*$/
11%type: Description Description_t
12%unique: Description
13%mandatory: Description
14%typedef: Identifier_t regexp /^[ABCDEFGHIJKLMNOPQRSTUVWXYZ_][ABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789]*$/
15%type: Identifier Identifier_t
16%unique: Identifier
17%mandatory: Identifier
18%allowed: Reference
19%sort: Number