mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Define HTTP codes for Yunohost Errors
This commit is contained in:
parent
37f0c30ddc
commit
1a0ef94109
1 changed files with 4 additions and 1 deletions
|
@ -25,6 +25,8 @@ from moulinette import m18n
|
||||||
|
|
||||||
class YunohostError(MoulinetteError):
|
class YunohostError(MoulinetteError):
|
||||||
|
|
||||||
|
http_code = 500
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Yunohost base exception
|
Yunohost base exception
|
||||||
|
|
||||||
|
@ -52,4 +54,5 @@ class YunohostError(MoulinetteError):
|
||||||
|
|
||||||
|
|
||||||
class YunohostValidationError(YunohostError):
|
class YunohostValidationError(YunohostError):
|
||||||
pass
|
|
||||||
|
http_code = 400
|
||||||
|
|
Loading…
Add table
Reference in a new issue