BadRequest 辅助函数:400 Bad Request
(w http.ResponseWriter, message string)
| 89 | |
| 90 | // BadRequest 辅助函数:400 Bad Request |
| 91 | func BadRequest(w http.ResponseWriter, message string) { |
| 92 | Error(w, http.StatusBadRequest, "bad_request", message) |
| 93 | } |
| 94 | |
| 95 | // NotFound 辅助函数:404 Not Found |
| 96 | func NotFound(w http.ResponseWriter, message string) { |