Documentation
¶
Overview ¶
Package httpx holds small HTTP helpers shared across the server and gateway — JSON responses in the api/v1 Error shape. No business logic lives here.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteError ¶
func WriteError(w http.ResponseWriter, status int, code, message string)
WriteError writes an error body matching the api/v1 Error schema ({code, message[, details]}).
func WriteErrorDetails ¶
func WriteErrorDetails(w http.ResponseWriter, status int, code, message string, details any)
WriteErrorDetails is WriteError with an extra structured details object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.