Skip to content

Commit

Permalink
Merge dbca54f into f77121f
Browse files Browse the repository at this point in the history
  • Loading branch information
aremishevsky committed Dec 2, 2020
2 parents f77121f + dbca54f commit 4583ed9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/handlers.ts
Expand Up @@ -54,6 +54,7 @@ function defaultErrorHandler(err, req, res) {
case 'ECONNRESET':
case 'ENOTFOUND':
case 'ECONNREFUSED':
case 'ETIMEDOUT':
res.writeHead(504);
break;
default:
Expand Down
1 change: 1 addition & 0 deletions test/unit/handlers.spec.ts
Expand Up @@ -104,6 +104,7 @@ describe('default proxy error handler', () => {
['ECONNREFUSED', 504],
['ENOTFOUND', 504],
['ECONNREFUSED', 504],
['ETIMEDOUT', 504],
['any', 500],
];

Expand Down

0 comments on commit 4583ed9

Please sign in to comment.