Update content-type for error responses
Handle cases where request body is invalid json or post content member is not an object