summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2020-10-30 11:01:58 +0100
committerMS <ms@taler.net>2020-10-30 11:01:58 +0100
commit354bf3cf733d8d97a82e951d1b9a2f5a161d03cd (patch)
treeffaa455a226dd897ed72abe2e9756d9824693371
parent2f455503f4f1b972d25886f79c0a0e437471ce57 (diff)
downloadbank-354bf3cf733d8d97a82e951d1b9a2f5a161d03cd.tar.gz
bank-354bf3cf733d8d97a82e951d1b9a2f5a161d03cd.tar.bz2
bank-354bf3cf733d8d97a82e951d1b9a2f5a161d03cd.zip
changing status codes
-rw-r--r--talerbank/app/views.py6
1 files 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