mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
fix 401 and 403 texts.
This commit is contained in:
@ -57,11 +57,11 @@ func HttpBadRequest(w http.ResponseWriter, res ...interface{}) {
|
||||
}
|
||||
|
||||
func HttpUnauthorized(w http.ResponseWriter, res ...interface{}) {
|
||||
defHttpError(w, http.StatusUnauthorized, "Access token does not have the required scope.", res...)
|
||||
defHttpError(w, http.StatusUnauthorized, "Invalid or missing access token.", res...)
|
||||
}
|
||||
|
||||
func HttpForbidden(w http.ResponseWriter, res ...interface{}) {
|
||||
defHttpError(w, http.StatusForbidden, "Invalid or missing access token.", res...)
|
||||
defHttpError(w, http.StatusForbidden, "Access token does not have the required scope.", res...)
|
||||
}
|
||||
|
||||
func HttpNotFound(w http.ResponseWriter, res ...interface{}) {
|
||||
|
Reference in New Issue
Block a user