package
Version:
v0.4.9
Opens a new window with list of versions in this module.
Published: Sep 20, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Code is a stable machine-readable API error code.
const (
CodeBadRequest Code = "bad_request"
CodeUnauthorized Code = "unauthorized"
CodeForbidden Code = "forbidden"
CodeNotFound Code = "not_found"
CodeConflict Code = "conflict"
CodeInternal Code = "internal_error"
)
type Error struct {
Code Code `json:"code"`
Message string `json:"message"`
Status int `json:"-"`
Cause error `json:"-"`
}
Error is safe to serialize to API clients.
Cause is retained for internal handling and is never serialized.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.