MCPcopy Create free account
hub / github.com/astercloud/aster / BadRequest

Function BadRequest

pkg/server/response.go:91–93  ·  view source on GitHub ↗

BadRequest 辅助函数:400 Bad Request

(w http.ResponseWriter, message string)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

ErrorFunction · 0.70

Tested by

no test coverage detected