production runtime and mock removal
This commit is contained in:
1 parent
2ef3da7af5
commit
6480e503eb
55 files changed
+581
-540
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user