func RespondErrorMessage()

in api/pkg/handler/errors.go [117:125]


func RespondErrorMessage(w http.ResponseWriter, r *http.Request, status int, msg string) {
	ej := &errjson{
		Status:  status,
		Kind:    http.StatusText(status),
		Message: msg,
	}

	RespondJSON(w, r, status, ej)
}