Centralized HTTP error definitions for a Go backend.
// Source: https://github.com/vxcontrol/pentagi | License: MIT | Copyright 2025 PentAGI Development Team // Provided via justclaw.it.com; keep this notice with the code. package response // general var ErrInternal = NewHttpError(500, "Internal", "internal server error") var ErrRequestTimeout = NewHttpError(504, "RequestTimeout", "the server took too long to answer; the action may still be running") var ErrInternalDBNotFound = NewHttpError(500, "Internal.DBNotFound", "db not found") var ErrInternalServiceNotFound = NewHttpError(500, "Internal.ServiceNotFound", "service not found") var ErrInternalDBEncryptorNotFound = NewHttpError(500, "Internal.DBEncryptorNotFound", "DBEncryptor not found") var ErrNotPermitted = NewHttpError(403, "NotPermitted", "action not permitted") var ErrAuthRequired ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key