20 lignes
222 o
Go
20 lignes
222 o
Go
|
package oauth_client
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
|
||
|
"github.com/pkg/errors"
|
||
|
)
|
||
|
|
||
|
type RichError struct {
|
||
|
Status int
|
||
|
error
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
ErrNotFound = &RichError{
|
||
|
Status: http.StatusNotFound,
|
||
|
error: errors.New("Not found"),
|
||
|
}
|
||
|
)
|