From e41f6e4aaf3abf95f3da98409259d246aac93283 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 3 Mar 2020 19:22:26 +0100 Subject: add missing http status codes --- core/api-wire.rst | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/core/api-wire.rst b/core/api-wire.rst index 5fdb405e..98e07419 100644 --- a/core/api-wire.rst +++ b/core/api-wire.rst @@ -52,8 +52,9 @@ Making Transactions :status 200 OK: The request has been correctly handled, so the funds have been transferred to the recipient's account. The body is a `TransferResponse` - :status 400 Bad Request: The bank replies with an `ErrorDetail` object. + :status 400 Bad Request: Request malformed. The bank replies with an `ErrorDetail` object. :status 401 Unauthorized: Authentication failed, likely the credentials are wrong. + :status 404 Not found: The endpoint is wrong or the user name is unknown. The bank replies with an `ErrorDetail` object. :status 409 Conflict: A transaction with the same ``transaction_uid`` but different transaction details has been submitted before. @@ -156,6 +157,9 @@ Querying the transaction history **Response** :status 200 OK: JSON object of type `IncomingHistory`. + :status 400 Bad Request: Request malformed. The bank replies with an `ErrorDetail` object. + :status 401 Unauthorized: Authentication failed, likely the credentials are wrong. + :status 404 Not found: The endpoint is wrong or the user name is unknown. The bank replies with an `ErrorDetail` object. .. ts:def:: IncomingHistory @@ -235,6 +239,9 @@ Querying the transaction history **Response** :status 200 OK: JSON object of type `OutgoingHistory`. + :status 400 Bad Request: Request malformed. The bank replies with an `ErrorDetail` object. + :status 401 Unauthorized: Authentication failed, likely the credentials are wrong. + :status 404 Not found: The endpoint is wrong or the user name is unknown. The bank replies with an `ErrorDetail` object. .. ts:def:: OutgoingHistory @@ -294,7 +301,7 @@ exposed by bank gateways in production. the recipient's account. The body is a `AddIncomingResponse` :status 400 Bad Request: The request is malformed. The bank replies with an `ErrorDetail` object. :status 401 Unauthorized: Authentication failed, likely the credentials are wrong. - :status 404 Not found: The user name is unknown. The bank replies with an `ErrorDetail` object. + :status 404 Not found: The endpoint is wrong or the user name is unknown. The bank replies with an `ErrorDetail` object. .. ts:def:: AddIncomingRequest -- cgit v1.2.3