catching of cpp null pointer exceptions.  HTTP responseHeaders addition