summaryrefslogtreecommitdiff
path: root/talerbank/app/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'talerbank/app/views.py')
-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