Skip to content

Commit

Permalink
Update the status code [when the db is down]
Browse files Browse the repository at this point in the history
  • Loading branch information
efbeka committed Aug 12, 2012
1 parent 2b17d61 commit c37228c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy.js
Expand Up @@ -16,7 +16,7 @@ http.createServer(function (req, res) {
regRes.pipe(res);
});
h.on('error', function (err) {
req.writeHead(500);
req.writeHead(502);
res.write('Proxy error!\n');
});
}
Expand Down

0 comments on commit c37228c

Please sign in to comment.