Open jrgm opened 11 years ago
Maybe a nit but 500 errors should be reserved for "Oh shit. I have no idea what's happening". Fending off bad JSON input should be a 400 error.
See around https://github.com/jedp/kpiggybank/blob/master/lib/server.js#L119
/cc @kparlante, @karlth
er, I meant @karlht
Agreed, tracking this on the mozilla fork: https://github.com/mozilla/kpiggybank/issues/10
Maybe a nit but 500 errors should be reserved for "Oh shit. I have no idea what's happening". Fending off bad JSON input should be a 400 error.
See around https://github.com/jedp/kpiggybank/blob/master/lib/server.js#L119
/cc @kparlante, @karlth