In my application, I am interested in HTTP status codes. I wish to, say, take custom action to a 403 Forbidden. I'm currently looking to see if this information could be added to handleLoadEnd.
Deep enough in the call stack of handleLoadEnd, I see the status code in:
* WebCore::MainResourceLoader::didFinishLoading as m_response.m_httpStatusCode
* WebCore::FrameLoader::finishedLoading as m_documentLoader->m_response.m_httpStatusCode
I don't see a good way to get this info higher up the call stack.
In CEF, I see the HTTP status code in RequestProxy::OnReceivedResponse and RequestProxy::NotifyReceivedResponse as info->headers->response_code_. I'm not sure how this fits in with other parts of the system yet.
I'm looking for a sensible way to expose the status code. Does anyone know the architecture of responses enough to provide guidance? I'll continue investigating in the meantime.
Thanks,
Mike