I want to implement proper HTTP semantics and return 200 OK or 201 CREATED from my PUT action depending on whether the resource was created or updated, and also in the response content describe the created resource.
Sadly the Web API sample for PUT doesn't show you how to do this. What are you supposed to do to specify an error code AND return a response body?