Add http_error callback

Allows user code to display its own error status responses or just log
the errors. Is called even in cases where begin_request is not called.