MCPcopy
hub / github.com/TaskingAI/TaskingAI / raise_http_error

Function raise_http_error

backend/tkhelper/error/error_code.py:69–73  ·  view source on GitHub ↗
(error_code: ErrorCode, message: str)

Source from the content-addressed store, hash-verified

67
68
69def raise_http_error(error_code: ErrorCode, message: str):
70 raise HTTPException(
71 status_code=error_messages[error_code]["status_code"],
72 detail={"error_code": error_code, "message": message},
73 )
74
75
76def raise_request_validation_error(message: str):

Callers 15

_validate_file_idFunction · 0.90
get_file_metadataMethod · 0.90
download_file_to_pathMethod · 0.90
delete_fileMethod · 0.90
getMethod · 0.90
_create_entityMethod · 0.90
_bulk_create_entitiesMethod · 0.90
login_adminFunction · 0.90
createMethod · 0.90
verify_model_credentialsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected