mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
add x/errors.OK, Create, NoContent and NoContentOrNotModified package-level generic functions as custom service helpers
This commit is contained in:
@@ -29,7 +29,7 @@ import (
|
||||
// errors.Unavailable
|
||||
// errors.DataLoss
|
||||
var (
|
||||
Custom = errors.E("CUSTOM_CANONICAL_ERROR_NAME", iris.StatusBadRequest)
|
||||
Custom = errors.Register("CUSTOM_CANONICAL_ERROR_NAME", iris.StatusBadRequest)
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
Reference in New Issue
Block a user