package
Version:
v1.321.0
Opens a new window with list of versions in this module.
Published: Oct 27, 2026
License: AGPL-3.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
¶
APIVersion is stamped on every error response of a Credimi route group.
type APIError struct {
Code int `json:"code"`
Domain string `json:"domain"`
Reason string `json:"reason"`
Message string `json:"message"`
}
APIError is the error returned by handlers of Credimi route groups.
ErrorHandlingMiddleware renders it as the "error" object of a Response.
Error implements the error interface.
Response wraps the error in the response envelope, using its message as the
top-level message.
type Response struct {
APIVersion string `json:"apiVersion"`
Message string `json:"message"`
Error *APIError `json:"error"`
}
Response is the JSON body of every error answered by a Credimi route group.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.