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 @amitrahav, thanks for the question! Both routes are actually returning content, the delete route is returning the model that was deleted while the update route (put) is returning the updated model. As such, I feel that having a 200 response is reasonable as content is being returned.
A 202 (Accepted) status code if the action will likely succeed but has not yet been enacted.
A 204 (No Content) status code if the action has been enacted and no further information is to be supplied.
A 200 (OK) status code if the action has been enacted and the response message includes a representation describing the > status.
By Mozilla docs, delete. and put responses should be 204 on success.
Is there a reason you choose to return 200?
The text was updated successfully, but these errors were encountered: