A collection of standardized HTTP error constants for session, authentication, and request validation. Use this to maintain consistent error messaging across backend services.
// Source: https://github.com/code-100-precent/LingEcho-App | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works // Provided via justclaw.it.com; keep this notice with the code. package xhttp const ( ERROR_HTTP_JWT_TOKEN_ERR = "无效的会话令牌" ERROR_HTTP_USER_ID_DOESNOT_EXIST = "缺少用户ID信息" ERROR_HTTP_PLATFORM_DOESNOT_EXIST = "缺少平台信息" ERROR_HTTP_SESSION_ID_DOESNOT_EXIST = "会话ID缺失" ERROR_HTTP_READ_SESSION_ID_FAILED = "读取会话ID失败" ERROR_HTTP_TOKEN_EXPIRES = "Token 已过期" ERROR_HTTP_GITHUB_TOKEN_EXPIRES = "Github Token 已过期,请重新登录" ERROR_HTTP_ACCOUNT_KICKED_OUT = "您的账号已在其他地方登录,请重新登录" ERROR_HTTP_REQ_DESERIALIZE_FAILED = "请求参数反序列化失败" ERROR_HTTP_RE ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key