### Motivation If trying to get stats of partitioned topic whose internal topics have not been generated, `500 Internal Server Error` is returned. I think that the status code in this case should be 404 rather than 500.
### Modifications If broker has failed to get stats of the internal topics and its status code is 404, the broker returns 404 error to the client. ### Result Appropriate error response will be returned to the client. [ Full content available at: https://github.com/apache/incubator-pulsar/pull/2542 ] This message was relayed via gitbox.apache.org for [email protected]
