add proper http error codes

This commit is contained in:
maxDorninger
2025-06-07 13:39:34 +02:00
parent 231c36efe0
commit 7347c0ab1e
3 changed files with 24 additions and 6 deletions

View File

@@ -1,6 +1,8 @@
class MediaAlreadyExists(ValueError):
"""Raised when a show already exists"""
pass
class NotFoundError(Exception):
"""Custom exception for when an entity is not found."""