-"""
-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):