ResourceNotFoundException

You can throw this from an api handler to indicate a 404 response. This is done by the presentExceptionAsHtml function in the presenter.

version(with_breaking_cgi_features)
class ResourceNotFoundException : Exception {
string resourceType;
string resourceId;
}

Meta

History

Added December 15, 2021 (dub v10.5)