fixed error handling for content negotiated request