mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-01 19:36:22 +02:00
update 401 & 403.
This commit is contained in:
parent
18ca647c76
commit
1ae6f05c73
1 changed files with 4 additions and 4 deletions
|
@ -50,12 +50,12 @@ func HttpBadRequest(w http.ResponseWriter, res ...interface{}) {
|
||||||
defHttpError(w, http.StatusBadRequest, "Bad Request.", res...)
|
defHttpError(w, http.StatusBadRequest, "Bad Request.", res...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func HttpNotAuthenticated(w http.ResponseWriter, res ...interface{}) {
|
func HttpNotAuthorized(w http.ResponseWriter, res ...interface{}) {
|
||||||
defHttpError(w, http.StatusUnauthorized, "Invalid or missing access token.", res...)
|
defHttpError(w, http.StatusUnauthorized, "Access token does not have the required scope.", res...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func HttpNotAuthorized(w http.ResponseWriter, res ...interface{}) {
|
func HttpNotAuthenticated(w http.ResponseWriter, res ...interface{}) {
|
||||||
defHttpError(w, http.StatusForbidden, "Access token does not have the required scope.", res...)
|
defHttpError(w, http.StatusForbidden, "Invalid or missing access token.", res...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func HttpNotFound(w http.ResponseWriter, res ...interface{}) {
|
func HttpNotFound(w http.ResponseWriter, res ...interface{}) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue