Skip to content

Commit

Permalink
capture correct status code on faas pod time out
Browse files Browse the repository at this point in the history
  • Loading branch information
abhimanyubabbar committed Nov 16, 2023
1 parent ff80b88 commit 19b053b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/openfaas/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ const executeFaasFunction = async (
}

if (error.statusCode === 504) {
throw new RespStatusError(`${name} timed out`);
throw new RespStatusError(`${name} timed out`, 504);
}

throw error;
Expand Down

0 comments on commit 19b053b

Please sign in to comment.