Compare commits

...

1 Commits

Author SHA1 Message Date
oscarzhou
0bb776f9f1 fix(api/status): add precondition failed error status 2024-02-20 10:08:21 +13:00

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)
}