When server returns some error HTTP response with empty body, the Chrome shows error message.
The cefclient shows empty page so user does not know what's going on.
Here is example: http://www.mocky.io/v2/5bdb41c3320000b6293ad50d.
How can I handle this and show error message? My idea was to use OnResourceResponse() where I can check response status and redirect to error page, but I'm afraid I cannot check if body is empty at that handler. Is it possible or is there some better way? My second idea is to use CefResponseFilter but it seems to bit complicated for simple task, maybe is there some simpler way?