3 ms·
I might suggest that 202 is a better response in your example.
by lsaferite 11y ago
I might suggest that 202 is a better response in your example.
- NathanKP 11y agoGood point! The fact that there is a 202 status code also goes to show that REST best practices allows for both synchronous and asynchronous use cases.
- lsaferite 11y agoOh, I 100% agree. I'm using a RESTish API right now to do things that are VERY async. There's no way you'd want to block a response while a VM was fired up and provisioned.