[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-bank] branch master updated: changing status codes
From: |
gnunet |
Subject: |
[taler-bank] branch master updated: changing status codes |
Date: |
Fri, 30 Oct 2020 11:02:02 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository bank.
The following commit(s) were added to refs/heads/master by this push:
new 354bf3c changing status codes
354bf3c is described below
commit 354bf3cf733d8d97a82e951d1b9a2f5a161d03cd
Author: MS <ms@taler.net>
AuthorDate: Fri Oct 30 11:01:58 2020 +0100
changing status codes
---
talerbank/app/views.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index df4075e..004d200 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -144,7 +144,7 @@ class PrivateAccountException(Exception):
def __init__(self, msg):
super(PrivateAccountException, self).__init__(msg)
self.hint = "Cannot show history from private persons accounts"
- self.http_status_code = HTTPStatus.PAYMENT_REQUIRED # WTF? FORBIDDEN?
+ self.http_status_code = HTTPStatus.FORBIDDEN
##
@@ -154,7 +154,7 @@ class DebitLimitException(Exception):
def __init__(self, msg):
super(DebitLimitException, self).__init__(msg)
self.hint = "Payment aborted for insufficient credit"
- self.http_status_code = HTTPStatus.NOT_ACCEPTABLE # WTF? FORBIDDEN?
+ self.http_status_code = HTTPStatus.FORBIDDEN
self.taler_error_code = ErrorCode.BANK_UNALLOWED_DEBIT
@@ -166,7 +166,7 @@ class SameAccountException(Exception):
def __init__(self, msg):
super(SameAccountException, self).__init__(msg)
self.hint = "Cannot send payment to oneself."
- self.http_status_code = HTTPStatus.FORBIDDEN # WTF? BAD_REQUEST?
+ self.http_status_code = HTTPStatus.BAD_REQUEST
self.taler_error_code = ErrorCode.BANK_SAME_ACCOUNT
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-bank] branch master updated: changing status codes,
gnunet <=