MCPcopy
hub / github.com/AstrBotDevs/AstrBot / error

Method error

astrbot/dashboard/services/auth_service.py:445–456  ·  view source on GitHub ↗
(
        message: str,
        *,
        data: dict | None = None,
        status_code: int = 200,
    )

Source from the content-addressed store, hash-verified

443
444 @staticmethod
445 def error(
446 message: str,
447 *,
448 data: dict | None = None,
449 status_code: int = 200,
450 ) -> AuthServiceResult:
451 return AuthServiceResult(
452 status="error",
453 data=data,
454 message=message,
455 status_code=status_code,
456 )

Callers 15

totp_setupMethod · 0.95
setupMethod · 0.95
setup_authenticatedMethod · 0.95
complete_setupMethod · 0.95
loginMethod · 0.95
edit_accountMethod · 0.95
check_envFunction · 0.45
notifyContextHandlersFunction · 0.45
runMethod · 0.45
get_active_templateMethod · 0.45

Calls 1

AuthServiceResultClass · 0.85

Tested by 2

test_mcp_connectionMethod · 0.36