continued development: derive and set the response content type