If you select the Custom error pages option when generating your codebase, the error handling helper functions in cmd/web/errors.go will be configured to render the custom error templates in the assets/html/pages/errors directory, instead of writing a plaintext error message.