Steps to reproduce
- There exist pending long-polling requests which haven't been completed yet
- The application server is shutdown
The responses of the previously pending long-polling requests are returned with status code 400.
- Status code 400 stands for Bad Request which is misleading as a server shutdown is not a matter of a wrong request
- The request should either be cancelled or the status code should be more meaningful