Documentation
¶
Overview ¶
Package httpx provides shared HTTP response helpers used by both the api and middleware packages to ensure consistent error formatting.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteError ¶
func WriteError(w http.ResponseWriter, code int, message string)
WriteError writes a consistent JSON error response with correct headers. All error responses across the codebase should use this function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.