sinatra / sinatra-recipes

Community contributed recipes and techniques
http://recipes.sinatrarb.com/
463 stars 142 forks source link

HTTP POST should return 201 Created #105

Closed abargnesi closed 9 years ago

abargnesi commented 9 years ago

This is more semantically correct when the Location header is returned.

syndbg commented 9 years ago

:+1:

ghost commented 9 years ago

From w3.org

10.2.2 201 Created

The request has been fulfilled and resulted in a new resource being created.

10.2.3 202 Accepted

The request has been accepted for processing, but the processing has not been completed.

I think this is merge-able message.save is being created not processing.

kgrz commented 9 years ago

Thank you!