MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / raise_http_error

Function raise_http_error

plugin/app/error/error_code.py:67–71  ·  view source on GitHub ↗
(error_code: ErrorCode, message: str)

Source from the content-addressed store, hash-verified

65
66
67def raise_http_error(error_code: ErrorCode, message: str):
68 raise TKHttpException(
69 status_code=error_messages[error_code]["status_code"],
70 detail={"error_code": error_code, "message": message},
71 )
72
73
74def raise_provider_api_error(provider_error_message: str):

Callers 15

handle_responseFunction · 0.90
validate_afterMethod · 0.90
api_executeFunction · 0.90
api_get_bundle_iconFunction · 0.90
api_verify_credentialsFunction · 0.90
executeMethod · 0.50
executeMethod · 0.50
executeMethod · 0.50
executeMethod · 0.50

Calls 1

TKHttpExceptionClass · 0.70

Tested by

no test coverage detected