spree/spree — pull request #5032 by HoyaBoya (2014-07-22 19:41:18+00:00)
Title: return 204 for PUT /orders/empty

Not a big deal but if we are not going to return a payload back in PUT /api/orders/:id/empty, perhaps 204 is a more accurate status code. It's the more HTTP/RESTful way of expressing OK, No-Content.

For those of us writing clients, it just eliminates one extra check for a response body before running it through a JSON parser.