X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=plomtask%2Fexceptions.py;h=5a18cf13b37120caaadb443f50ed1b07146ad707;hb=ee18435127ad396c24dbee2c7efcdbe6810d5a91;hp=379ae9feb751b99eb45e083d992f5509b6059a43;hpb=8ae8877e3e2588db76285e7e3ddfb8c7b9948a96;p=plomtask
diff --git a/plomtask/exceptions.py b/plomtask/exceptions.py
index 379ae9f..5a18cf1 100644
--- a/plomtask/exceptions.py
+++ b/plomtask/exceptions.py
@@ -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):