POST should return status 201
I have been coding webapp’s for more than 17 years, and I discovered just yesterday that a successful POST should return status 201.
In my office, though I am a Ruby on Rails developer, they told me to code in ReactJS too. Things were hieroglyphs, I never understood it, but there I was staring at a ticket, I never finished it. I hated JavaScript, then after learning a bit of React, I started to hate it more. I still can’t believe humans with embarrassing low intelligence exist, that they can invent JavaScript and React.
Any ways, to learn React, I need a backend, I can’t keep creating back end for this and that. I started to think if we can have instant backend for front end developers, and I came up with the injee (in memory JSON store) project. It served me well, I was able to create frontend apps because I had a ready-made back end all the time. I am still working on injee.
I am not an expert on HTTP protocol, since injee should provide highly standardized API’s my research suggested that a successful POST should return status 201, and not 200.
This is why I insist that developers should have a side project, or must contribute to open source projects. At work its work work work, you don’t give a thing about your learning, you trade your existence for money, you can’t expect life in it. If I did not have side project I would have never discovered it may be even in next 20 years.
For some reason side project I find enhances my soul. May be because it’s not Agile, and I don’t have to touch this depressing JIRA to log my time, I don’t have tell to someone every day I worked. I don’t have to rush because I won’t lose out on my appraisal and slip into poverty.
Injee has not been just refreshing to my soul, about 15+ front end developers have been freed from creating a backend. It’s ironic, because in my work I am unable to free myself from JavaScript and ReactJS even though I am a Ruby on Rails developer and never claimed myself as front end guy, but here, to learn front end tech, I was able to create a project that frees up frontend devs from their miseries of creating a back end server.
Reference