You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm playing with health checks currently, and tried this code (from the README):
var strata = tilestrata({
healthy: function(callback) {
callback(new Error('CPU is too high'), {loadavg: 3});
}
});
This returns an HTTP code 500, which I would expect only if my request crashed the server. Also, the returned JSON already includes a hint that something is wrong ("ok":false).
I wonder, what was the reasoning to set the status code to 500?
The text was updated successfully, but these errors were encountered:
I'm playing with health checks currently, and tried this code (from the README):
This returns an HTTP code 500, which I would expect only if my request crashed the server. Also, the returned JSON already includes a hint that something is wrong ("ok":false).
I wonder, what was the reasoning to set the status code to 500?
The text was updated successfully, but these errors were encountered: