use FORBIDDEN, never UNAUTHORIZED

This commit is contained in:
Christian Grothoff 2019-11-23 21:53:14 +01:00
parent bd8bae913c
commit 51e54bbaa1
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 4 additions and 5 deletions

View File

@ -929,7 +929,7 @@ enum TALER_ErrorCode
/** /**
* The given coin signature is invalid for the request. * The given coin signature is invalid for the request.
* This response is provided with an * This response is provided with an
* HTTP status code of MHD_HTTP_UNAUTHORIZED. * HTTP status code of MHD_HTTP_FORBIDDEN.
*/ */
TALER_EC_PAYBACK_SIGNATURE_INVALID = 1851, TALER_EC_PAYBACK_SIGNATURE_INVALID = 1851,
@ -1905,7 +1905,7 @@ enum TALER_ErrorCode
* The signature provided in the "Sync-Signature" header * The signature provided in the "Sync-Signature" header
* does not match the account, old or new Etags. * does not match the account, old or new Etags.
* This response is provided with HTTP status code * This response is provided with HTTP status code
* MHD_HTTP_UNAUTHORIZED. * MHD_HTTP_FORBIDDEN.
*/ */
TALER_EC_SYNC_INVALID_SIGNATURE = 6007, TALER_EC_SYNC_INVALID_SIGNATURE = 6007,

View File

@ -16,9 +16,8 @@
License along with TALER; see the file COPYING. If not, see License along with TALER; see the file COPYING. If not, see
<http://www.gnu.org/licenses/> <http://www.gnu.org/licenses/>
*/ */
/** /**
* @file exchange/test_exchange_api_twister.c * @file exchange/test_exchange_api_twisted.c
* @brief testcase to test exchange's HTTP API interface * @brief testcase to test exchange's HTTP API interface
* @author Marcello Stanisci * @author Marcello Stanisci
* @author Sree Harsha Totakura <sreeharsha@totakura.in> * @author Sree Harsha Totakura <sreeharsha@totakura.in>
@ -262,7 +261,7 @@ run (void *cls,
TALER_TESTING_cmd_refund TALER_TESTING_cmd_refund
("refund-bad-sig", ("refund-bad-sig",
MHD_HTTP_UNAUTHORIZED, MHD_HTTP_FORBIDDEN,
"EUR:5", "EUR:5",
"EUR:0.01", "EUR:0.01",
"deposit-refund-1"), "deposit-refund-1"),