Files
backend/internal/pkg
lafay 57058b04da
All checks were successful
Build Backend / build (push) Successful in 4m46s
Build Backend / build-docker (push) Successful in 5m33s
fix(response): correct error status mapping and response structure
Map INVALID_CREDENTIALS to http.StatusBadRequest (400) instead of
http.StatusUnauthorized (401) to better align with client error semantics.

Update ErrorWithStringCode to return the HTTP status code in the 'code'
field and set 'data' to nil, removing the legacy compatibility workaround
that set 'code' to 0.

BREAKING CHANGE: Response structure for ErrorWithStringCode changed (Code
field now returns status code, Data is nil) and INVALID_CREDENTIALS status
changed from 401 to 400.
2026-03-21 01:35:57 +08:00
..
2026-03-09 21:28:58 +08:00
2026-03-09 21:28:58 +08:00
2026-03-09 21:28:58 +08:00
2026-03-09 21:28:58 +08:00
2026-03-09 21:28:58 +08:00