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

Function InternalError

pkg/server/response.go:101–103  ·  view source on GitHub ↗

InternalError 辅助函数:500 Internal Server Error

(w http.ResponseWriter, message string)

Source from the content-addressed store, hash-verified

99
100// InternalError 辅助函数:500 Internal Server Error
101func InternalError(w http.ResponseWriter, message string) {
102 Error(w, http.StatusInternalServerError, "internal_error", message)
103}
104
105// Unauthorized 辅助函数:401 Unauthorized
106func Unauthorized(w http.ResponseWriter, message string) {

Callers

nothing calls this directly

Calls 1

ErrorFunction · 0.70

Tested by

no test coverage detected