local-server/cmd/dkl-local-server/httperr.go
Mikaël Cluseau 76c1861017 bump deps
2023-05-01 16:33:56 +02:00

15 lines
310 B
Go

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