local-server/cmd/dkl-local-server/httperr.go
Mikaël Cluseau 4acdf88785 misc fixes
2023-02-13 17:31:37 +01:00

15 lines
332 B
Go

package main
import (
"net/http"
"m.cluseau.fr/go/httperr"
)
var (
ErrNotFound = httperr.StdStatus(http.StatusNotFound)
ErrUnauthorized = httperr.StdStatus(http.StatusUnauthorized)
ErrForbidden = httperr.StdStatus(http.StatusForbidden)
ErrInvalidToken = httperr.NewStd(1000, http.StatusForbidden, "invalid token")
)