summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-08-03 12:35:03 +0200
committerChristian Grothoff <christian@grothoff.org>2020-08-03 12:35:03 +0200
commit969e2b3b796a805b4954ea38d8a409c27f861883 (patch)
treecb2cf60f76136987f9cd32eb6ee62eed7cc00c81
parent2e56c864ed9c99a46cbb692cdb2dc38ecb3a6a4c (diff)
more codes, disambiguate HTTP status codes
-rw-r--r--gnu-taler-error-codes/registry.rec18
1 files changed, 14 insertions, 4 deletions
diff --git a/gnu-taler-error-codes/registry.rec b/gnu-taler-error-codes/registry.rec
index 40e3b8e..3ea54f8 100644
--- a/gnu-taler-error-codes/registry.rec
+++ b/gnu-taler-error-codes/registry.rec
@@ -60,17 +60,17 @@ HttpStatus: 0
Value: 7
Name: JSON_ALLOCATION_FAILURE
Description: Exchange failed to allocate memory for building JSON reply.
-HttpStatus: 0
+HttpStatus: 500
Value: 8
Name: METHOD_INVALID
Description: HTTP method invalid for this URL.
-HttpStatus: 0
+HttpStatus: 405
Value: 9
Name: OPERATION_INVALID
-Description: Operation specified invalid for this URL (resulting in a "NOT FOUND" for the overall response).
-HttpStatus: 0
+Description: Operation specified invalid for this endpoint.
+HttpStatus: 400
Value: 10
Name: ENDPOINT_UNKNOWN
@@ -112,6 +112,16 @@ Name: PAYTO_MALFORMED
Description: The payto:// URI we got is malformed.
HttpStatus: 0
+Value: 18
+Name: OPERATION_UNKNOWN
+Description: Operation specified unknown for this endpoint.
+HttpStatus: 404
+
+Value: 19
+Name: ALLOCATION_FAILURE
+Description: Exchange failed to allocate memory.
+HttpStatus: 500
+
Value: 1001
Name: DB_SETUP_FAILED
Description: The exchange failed to even just initialize its connection to the database.