15 lines
310 B
Go
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")
|
|
)
|