A default mapping of arbitrary Throwable to HTTP error.
A default mapping of arbitrary Throwable to HTTP error. If it's a FileNotFoundException or NoSuchFileException, a uzhttp.HTTPError.NotFound is generated; otherwise the error is wrapped in uzhttp.HTTPError.InternalServerError.
This is provided for convenience, in case you don't want to handle non-HTTP errors yourself.