From 969e2b3b796a805b4954ea38d8a409c27f861883 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 3 Aug 2020 12:35:03 +0200 Subject: more codes, disambiguate HTTP status codes --- gnu-taler-error-codes/registry.rec | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'gnu-taler-error-codes') 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. -- cgit v1.2.3