home · contact · privacy
Fix module description.
[plomtask] / plomtask / exceptions.py
index 379ae9feb751b99eb45e083d992f5509b6059a43..5a18cf13b37120caaadb443f50ed1b07146ad707 100644 (file)
@@ -1,17 +1,14 @@
-"""
-Whatever fits nowhere else, and/or is too small/trivial
-to merit its own module at this point.
-"""
+"""Exceptions triggering different HTTP codes."""
 
 
 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):