refactor: remove the duplicate definitions across different modules (#9022)

This commit is contained in:
zhuhao 2024-10-07 11:08:06 +08:00 • committed by GitHub
commit 959a81a41b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 14 deletions

View file

@ -0,0 +1,7 @@
from libs.exception import BaseHTTPException
class UnsupportedFileTypeError(BaseHTTPException):
error_code = "unsupported_file_type"
description = "File type not allowed."
code = 415