fix(httpapi): stable problem details for client errors

Стабильные detail для 4xx (store, CDN preview, CSV); логирование на сервере. Расширен lint-httpapi для ERR-01 в 4xx.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Denozordec
2026-05-20 14:48:57 +07:00
co-authored by Cursor
parent 5858d0889e
commit 6fa693156d
3 changed files with 24 additions and 7 deletions
+6 -2
View File
@@ -7,8 +7,12 @@ import (
)
const (
internalErrorDetail = "an internal error occurred"
badGatewayDetail = "upstream request failed"
internalErrorDetail = "an internal error occurred"
badGatewayDetail = "upstream request failed"
notFoundDetail = "resource not found"
invalidInputDetail = "invalid request data"
cdnExtractDetail = "could not extract prefixes from source"
csvInvalidRowDetail = "invalid row in csv file"
)
// Problem is RFC 9457 application/problem+json.