diff --git a/http/response/response.go b/http/response/response.go index b62703e..8922d5b 100644 --- a/http/response/response.go +++ b/http/response/response.go @@ -13,8 +13,9 @@ func NotFound() rsvp.Response { func Error(status int, format string, a ...any) rsvp.Response { return rsvp.Response{ - Body: fmt.Sprintf(format, a...), - Status: status, + Body: fmt.Sprintf(format, a...), + Status: status, + TemplateName: "error_page.gotmpl", } } diff --git a/http/templates/error_page.gotmpl b/http/templates/error_page.gotmpl index d51f2a6..6c6229b 100644 --- a/http/templates/error_page.gotmpl +++ b/http/templates/error_page.gotmpl @@ -26,7 +26,7 @@