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 c9d1f16 commit 630bedcCopy full SHA for 630bedc
src/server/utils.ts
@@ -27,6 +27,8 @@ export function translateErrorToResponseCode(
27
): number {
28
if (error.message === 'Connection terminated due to connection timeout') {
29
return 504
30
+ } else if (error.message === 'sorry, too many clients already') {
31
+ return 503
32
}
33
return defaultResponseCode
34
0 commit comments