fn return_error_page(
    url: &str,
    status: u16,
    // This should already have been transformed into a string (with a source chain etc.)
    err: &str,
    translator: Option<Rc<Translator>>,
    error_pages: &ErrorPages<SsrNode>,
    html_shell: &HtmlShell,
) -> HttpResponse {
    let html = build_error_page(url, status, err, translator, error_pages, html_shell);
    HttpResponse::build(StatusCode::from_u16(status).unwrap())
        .content_type("text/html")
        .body(html)
}
/// Builds on the internal Perseus primitives to provide a utility function that returns an `HttpResponse` automatically.
Builds on the internal Perseus primitives to provide a utility function that returns an `HttpResponse` automatically.
Builds on the internal Perseus primitives to provide a utility function that returns an ` HttpResponse ` automatically .
fn return_error_page(
    url: &str,
    status: u16,
    // This should already have been transformed into a string (with a source chain etc.)
    err: &str,
    translator: Option<Rc<Translator>>,
    error_pages: &ErrorPages<SsrNode>,
    html_shell: &HtmlShell,
) -> HttpResponse {
    let html = build_error_page(url, status, err, translator, error_pages, html_shell);
    HttpResponse::build(StatusCode::from_u16(status).unwrap())
        .content_type("text/html")
        .body(html)
}
fn return_error_page ( url : & str , status : u16 , // This should already have been transformed into a string (with a source chain etc.) err : & str , translator : Option < Rc < Translator > > , error_pages : & ErrorPages < SsrNode > , html_shell : & HtmlShell , ) -> HttpResponse { let html = build_error_page ( url , status , err , translator , error_pages , html_shell ) ; HttpResponse :: build ( StatusCode :: from_u16 ( status ) . unwrap ( ) ) . content_type ( " " ) . body ( html ) }
Builds on the internal Perseus primitives to provide a utility function that returns an `HttpResponse` automatically.
Builds on the internal Perseus primitives to provide a utility function that returns an ` HttpResponse ` automatically .
url
&str
status
u16
err
&str
translator
Option<Rc<Translator>>
error_pages
&ErrorPages<SsrNode>
html_shell
&HtmlShell
url
&str
status
u16
err
&str
translator
Option<Rc<Translator>>
error_pages
&ErrorPages<SsrNode>
html_shell
&HtmlShell