Unauthorized 辅助函数:401 Unauthorized
(w http.ResponseWriter, message string)
| 104 | |
| 105 | // Unauthorized 辅助函数:401 Unauthorized |
| 106 | func Unauthorized(w http.ResponseWriter, message string) { |
| 107 | Error(w, http.StatusUnauthorized, "unauthorized", message) |
| 108 | } |
| 109 | |
| 110 | // Forbidden 辅助函数:403 Forbidden |
| 111 | func Forbidden(w http.ResponseWriter, message string) { |