local-server/cmd/dkl-local-server/httperr.go

13 lines
225 B
Go
Raw Normal View History

2023-02-12 10:58:26 +00:00
package main
import (
"net/http"
"m.cluseau.fr/go/httperr"
)
2023-02-13 12:03:42 +00:00
var (
ErrNotFound = httperr.NewStd(404, http.StatusNotFound, "not found")
ErrInvalidToken = httperr.NewStd(403, http.StatusForbidden, "invalid token")
)