mirror of
https://github.com/portainer/portainer.git
synced 2025-08-08 23:35:31 +02:00
fix(api/status): add precondition failed error status
This commit is contained in:
parent
2d87a8d8c3
commit
0bb776f9f1
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue