1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-10 00:05:24 +02:00

fix(api/status): add precondition failed error status

This commit is contained in:
oscarzhou 2024-02-19 16:51:07 +13:00
parent 22b4d029fd
commit 5514db5da4

View file

@ -44,3 +44,7 @@ func Forbidden(message string, err error) *HandlerError {
func Conflict(message string, err error) *HandlerError {
return NewError(http.StatusConflict, message, err)
}
func PreconditionFailed(message string, err error) *HandlerError {
return NewError(http.StatusPreconditionFailed, message, err)
}