DEV Community

Discussion on: The Complete Guide to Status Codes for Meaningful ReST APIs - Let's start!

Collapse
 
katnel20 profile image
Katie Nelson

Hey Lucas, thanks for the reply. Most of the POSTS are for controlling a service (Start/Stop) kind of commands.

Thread Thread
 
_staticvoid profile image
Lucas Santos

Oh! In this case, my personal opinion is that you can use either 200 OR 204, I'd use 204 since it has no content to be returned, but if you do return something go for 200