MCPcopy Create free account
hub / github.com/QuantumNous/new-api / respondPluginProtocolError

Function respondPluginProtocolError

controller/plugin_protocol.go:1268–1276  ·  view source on GitHub ↗
(c *gin.Context, status int, code, message string)

Source from the content-addressed store, hash-verified

1266}
1267
1268func respondPluginProtocolError(c *gin.Context, status int, code, message string) {
1269 c.JSON(status, gin.H{
1270 "error": gin.H{
1271 "message": message,
1272 "type": "new_api_error",
1273 "code": code,
1274 },
1275 })
1276}

Calls

no outgoing calls

Tested by

no test coverage detected