handle
Writes the error and logs it by the status it was answered with (requestFailure): a 404 for a missing static resource is one line, a 5xx keeps its stack trace. A response committed before the error, or one whose status cannot be read, is logged with the stack trace.