loopback icon indicating copy to clipboard operation
loopback copied to clipboard

200 code for POST rather than 201 remains

Open Cooker-Monster opened this issue 9 years ago • 1 comments

a POST command returns a 200 code instead of 201.

It's a little bit strange because this nice Framework manages very more sofisticated and powerful features and that is the first ugly thing that we can see in the very beginning of a demo.

Please note that it's the same behaviour for 3.1.0 and 4.0.0 versions

Steps to reproduce

lb demo cd demo lb datasource lb model node. http://localhost:3000/explorer

Link to reproduction sandbox

Expected result

201

Additional information

Cooker-Monster avatar Nov 28 '17 14:11 Cooker-Monster

@Cooker-Monster Thank you for the suggestion, seems we have an issue for it: https://github.com/strongloop/loopback/issues/360

I also created an issue in LoopBack4 for it: https://github.com/strongloop/loopback-next/issues/788 and bring the attention to my team.

I am closing this issue as a duplicate and let's keep the discussion in either story above. Thanks for understanding. And feel free to reopen it if you have other questions.

jannyHou avatar Dec 11 '17 02:12 jannyHou