# Exception with custom route

**URL:** <https://forum.getkirby.com/t/exception-with-custom-route/10080>\
**Category:** Questions\
**Tags:** v2\
**Created:** [March 26, 2018, 5:16pm UTC](https://forum.getkirby.com/t/exception-with-custom-route/10080 "2018-03-26T17:16:57Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [March 26, 2018, 6:16pm UTC](https://forum.getkirby.com/t/exception-with-custom-route/10080/8 "2018-03-26T18:16:15Z")

</div>

Guess this happens because you echo the template. This should work:

```auto
return new Response(tpl::load(kirby()->roots()->templates() . DS . 'cv-template-no-1.php'), 'html', 200);

```

---

_[View the full topic](https://forum.getkirby.com/t/exception-with-custom-route/10080)._
