httpErrorHandler function
Implementation
void httpErrorHandler(HttpRequest req, Object? error, StackTrace stackTrace) {
if (error is Exception || error is Error) {
Dox().config.errorHandler(error, stackTrace);
}
httpResponseHandler(error, req);
}