mirror of https://github.com/portainer/portainer
fix(api/status): add precondition failed error status
parent
22b4d029fd
commit
5514db5da4
|
@ -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…
Reference in New Issue