[Improvement] Use Method-Aware Status Codes
aaronjameslang opened this issue · comments
Aaron J. Lang commented
Currently, the default success code is 200. It could be 201 Created for POST, 204 No Content for PUT and DELETE, etc.
This would encourage apps to use the correct codes, and save users having to configure this on every route themselves.
Does this sounds like a good idea?
https://github.com/claudiajs/claudia-api-builder/blob/master/src/api-builder.js#L69
Gojko Adzic commented
hi, let's please move this discussion to the gitter chat channel, we use github issues for bug reports only