MCPcopy
hub / github.com/langbot-app/LangBot / fail

Method fail

src/langbot/pkg/api/http/controller/group.py:178–186  ·  view source on GitHub ↗

Return an error response

(self, code: int, msg: str)

Source from the content-addressed store, hash-verified

176 )
177
178 def fail(self, code: int, msg: str) -> quart.Response:
179 """Return an error response"""
180
181 return quart.jsonify(
182 {
183 'code': code,
184 'msg': msg,
185 }
186 )
187
188 def http_status(self, status: int, code: int, msg: str) -> typing.Tuple[quart.Response, int]:
189 """返回一个指定状态码的响应"""

Callers 8

http_statusMethod · 0.95
_respondMethod · 0.80
_feedbackMethod · 0.80
_dismissMethod · 0.80
_Method · 0.80
upload_imageMethod · 0.80
upload_documentMethod · 0.80
langbot_processFunction · 0.80

Calls

no outgoing calls

Tested by 1

langbot_processFunction · 0.64