errors/middleware.go
func SetErrorHandlerFunc(status int, handler func(ctx context.Context, w http.ResponseWriter, r *http.Request, status int, err error)) scaffold.Middleware {
	return SetErrorHandler(status, ErrorHandlerFunc(handler))
}
func SetErrorHandlerFunc(status int, handler func(ctx context.Context, w http.ResponseWriter, r *http.Request, status int, err error)) scaffold.Middleware {
	return SetErrorHandler(status, ErrorHandlerFunc(handler))
}
// SetErrorHandlerFunc returns Middleware that can be used to set the error handler