package pages import ( "net/http" "git.grosinger.net/tgrosinger/saasitone/pkg/page" ) templ Error(p page.Page) { if p.StatusCode >= 500 {

Please try again.

} else if p.StatusCode == http.StatusUnauthorized || p.StatusCode == http.StatusForbidden {

You are not authorized to view the requested page.

} else if p.StatusCode == http.StatusNotFound {

Click here to return home

} else {

Something went wrong

} }