This commit is contained in:
Синельник Тимур Романович committed 2026-03-18 16:51:54 +03:00
1 parent b692728cc3
commit 59875487ae
7 files changed
+13 -7

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ func (e *HttpError) Error() string {
func (e *HttpError) WriteError(w http.ResponseWriter) error {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(e.statusCode)
data := map[string]interface{}{
data := map[string]any{
"errorCode": http.StatusText(e.statusCode),
"errorMessage": e.userMessage,
"details": e.details,