production runtime and mock removal

This commit is contained in:
inman committed 2026-08-17 23:44:14 +08:00
1 parent 2ef3da7af5
commit 6480e503eb
55 files changed
+581 -540

No files matched your search

+3
View File
@@ -51,6 +51,9 @@ func HTTPStatus(err error) int {
if errors.As(err, &status) {
return status.Status
}
if errors.Is(err, ErrProviderUnavailable) {
return 503
}
return 500
}