serveNotFoundAsync

open fun serveNotFoundAsync(request: HttpRequest<*>): Deferred<StreamedAssetResponse>

Serve a response of status HTTP 404 (Not Found), in response to a request for an asset which could not be located by the built-in asset system.

The resulting response is not specific to the asset requested, but the request is provided nonetheless so that implementations may log or perform other relevant follow-up work.

Return

Deferred task which resolves to an HTTP 404 response.

Parameters

request

HTTP request which prompted this 404-not-found response.