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

Method http_status

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

返回一个指定状态码的响应

(self, status: int, code: int, msg: str)

Source from the content-addressed store, hash-verified

186 )
187
188 def http_status(self, status: int, code: int, msg: str) -> typing.Tuple[quart.Response, int]:
189 """返回一个指定状态码的响应"""
190 return (self.fail(code, msg), status)

Callers 15

handler_errorMethod · 0.95
_Method · 0.80
_Method · 0.80
list_or_create_skillsMethod · 0.80
list_skill_filesMethod · 0.80
preview_skillMethod · 0.80

Calls 1

failMethod · 0.95

Tested by

no test coverage detected