commit 02aac483bcfb8a2ca867449d436c0d7ab2378d2f Author: aagbsn aagbsn@extc.org Date: Sat Aug 24 15:20:28 2013 +0200
Use correct status-code per oonib.md spec --- oonib/errors.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/oonib/errors.py b/oonib/errors.py index 12295aa..5c4e4d8 100644 --- a/oonib/errors.py +++ b/oonib/errors.py @@ -12,15 +12,15 @@ class NoHelperFound(OONIBError): log_message = 'no-helper-found'
class InvalidInputHash(OONIBError): - status_code = 400 + status_code = 406 log_message = 'invalid-input-hash'
class InvalidNettestName(OONIBError): - status_code = 400 + status_code = 406 log_message = 'invalid-nettest-name'
class InputHashNotProvided(OONIBError): - status_code = 400 + status_code = 406 log_message = 'input-hash-not-provided'
class InvalidRequestField(OONIBError):
tor-commits@lists.torproject.org