refactor: remove the duplicate definitions across different modules (#9022)
This commit is contained in:
parent
4480b469a6
commit
959a81a41b
3 changed files with 9 additions and 14 deletions
7
api/controllers/files/error.py
Normal file
7
api/controllers/files/error.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue