We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2817cad commit 071e6b1Copy full SHA for 071e6b1
packages/service-error-classification/src/index.ts
@@ -31,7 +31,7 @@ export const isTransientError = (error: SdkError) =>
31
export const isServerError = (error: SdkError) => {
32
if (error.$metadata?.httpStatusCode !== undefined) {
33
const statusCode = error.$metadata.httpStatusCode;
34
- if (statusCode > 499 && statusCode <= 599 && !isTransientError(error)) {
+ if (500 <= statusCode && statusCode <= 599 && !isTransientError(error)) {
35
return true;
36
}
37
return false;
0 commit comments