claudiajs / claudia-api-builder

Use AWS API Gateway as if it were a lightweight JavaScript web server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Improvement] Use Method-Aware Status Codes

aaronjameslang opened this issue · comments

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

hi, let's please move this discussion to the gitter chat channel, we use github issues for bug reports only