massakam opened a new pull request #9031:
URL: https://github.com/apache/pulsar/pull/9031


   ### Motivation
   
   If the WebSocket proxy fails to create a producer or consumer, it should 
return the suitable HTTP status code to the client depending on the type of 
`PulsarClientException` that occurred. However, there are currently only a few 
exceptions where the WebSocket proxy returns a status code other than 500.
   
https://github.com/apache/pulsar/blob/7be1b8dfcfaa4298c541c4eb134f1e752fa6a7d8/pulsar-websocket/src/main/java/org/apache/pulsar/websocket/ProducerHandler.java#L119-L129
   
   ### Modifications
   
   Moved the `getErrorCode()` method from `ProducerHandler` and 
`ConsumerHandler` to `AbstractWebSocketHandler` and increased the types of 
`PulsarClientException` to handle.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to