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
Hi, it would be great to be able to set the return status to 201 and provide the Location HTTP header in the response. This would make Chalice much more useful to create RESTFul APIs.
Thanks,
Lars
The text was updated successfully, but these errors were encountered:
Next to 201, I'd also like to return 202, and 204 as well as 405, 410, 423, ...
For 4xx and 5xx, maybe can be as simple as raise HttpError(status_code, description) ?
The latest version of 0.6.0 now makes this possible. The default JSON response is still preserved, but you can return a chalice.Response instance which allows you to specify custom headers including Location:
Hi, it would be great to be able to set the return status to 201 and provide the Location HTTP header in the response. This would make Chalice much more useful to create RESTFul APIs.
Thanks,
Lars
The text was updated successfully, but these errors were encountered: