X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=plomtask%2Fexceptions.py;h=5a18cf13b37120caaadb443f50ed1b07146ad707;hb=8e1a5416151dbcf506f2435823362e21d85aed2d;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):