# Erro pages customization in production environment

**URL:** <https://www.ruby-forum.com/t/erro-pages-customization-in-production-environment/196825>\
**Category:** Ruby-Forum\
**Created:** [October 20, 2008, 12:04pm UTC](https://www.ruby-forum.com/t/erro-pages-customization-in-production-environment/196825 "2008-10-20T12:04:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunfish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/96bed5/32.png) [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Post date:** [October 20, 2008, 12:04pm UTC](https://www.ruby-forum.com/t/erro-pages-customization-in-production-environment/196825/1 "2008-10-20T12:04:35Z")

</div>

Hi,

In my application i had two error pages for 500 and 404 error.  
500.html and 404.html  
when someting went wrong this pages is called. but this pages are  
static pages if i want to add some dynamic data how i can add in it?  
ex.  
say user A’s session going on and he click some bad url or  
something so  
i wan t show user A’s name and other data n 500.404.html page.

Please help me to find this? and find how to configure this error  
pages in application
