home · contact · privacy
Fix HTTP exception codes.
[plomtask] / plomtask / exceptions.py
index 379ae9feb751b99eb45e083d992f5509b6059a43..2e479d9cb144f8e25aafccdc09a75e20d75de6f3 100644 (file)
@@ -6,12 +6,12 @@ to merit its own module at this point.
 
 class HandledException(Exception):
     """To identify Exceptions based on expected (if faulty) user behavior."""
-    http_code = 400
+    http_code = 500
 
 
 class BadFormatException(HandledException):
     """To identify Exceptions on malformed inputs."""
-    http_code = 401
+    http_code = 400
 
 
 class NotFoundException(HandledException):