android-components / mozilla.components.concept.engine.request / RequestInterceptor / onErrorRequest

# onErrorRequest

`open fun onErrorRequest(session: EngineSession, errorType: ErrorType, uri: String?): ErrorResponse?` (source)

A request that the engine wasn't able to handle that resulted in an error.

### Parameters

`session` - The engine session that initiated the callback.

`errorType` - The error that was provided by the engine related to the type of error caused.

`uri` - The uri that resulted in the error.

Return
An ErrorResponse object containing alternative content if the request caused an error. null otherwise.