# Is it possible to configure a template for the body of 301 redirect responses?

**URL:** <https://community.traefik.io/t/is-it-possible-to-configure-a-template-for-the-body-of-301-redirect-responses/9727>\
**Category:** Traefik v2\
**Tags:** docker\
**Created:** [February 16, 2021, 9:03pm UTC](https://community.traefik.io/t/is-it-possible-to-configure-a-template-for-the-body-of-301-redirect-responses/9727 "2021-02-16T21:03:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![borjapazr](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/borjapazr/32/3396_2.png) [@borjapazr](https://community.traefik.io/u/borjapazr)\
**Post date:** [February 16, 2021, 9:03pm UTC](https://community.traefik.io/t/is-it-possible-to-configure-a-template-for-the-body-of-301-redirect-responses/9727/1 "2021-02-16T21:03:17Z")

</div>

Currently traefik returns the following body in a permanent redirect response.

![image](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/1/1181cae410a9e0a7d2d74f2eba8af1072e13cc0c.png)

Could this behavior be modified to be able to return a custom template?

I know that you can configure pages for the various 4xx or 5xx errors, as documented in the following link [https://doc.traefik.io/traefik/middlewares/errorpages](https://doc.traefik.io/traefik/middlewares/errorpages), but is this possible for http redirect status, such as 301 or 302?

Mu current configuration:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/3/395b2a3fb42e5fab5aa2ff0a0d34abbc42d45f6a.png)

Thanks in advance.
