fix NPEx when exception has no cause
support HTTP headers