# Variables in error pages

**URL:** <https://www.ruby-forum.com/t/variables-in-error-pages/148605>\
**Category:** Rails\
**Created:** [September 15, 2008, 3:37pm UTC](https://www.ruby-forum.com/t/variables-in-error-pages/148605 "2008-09-15T15:37:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![konstantin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/858c86/32.png) [@konstantin](https://www.ruby-forum.com/u/konstantin)\
**Post date:** [September 15, 2008, 3:37pm UTC](https://www.ruby-forum.com/t/variables-in-error-pages/148605/1 "2008-09-15T15:37:27Z")

</div>

Hello!

I want to make my own error pages with some variables, because  
description of the errors may vary.  
How can I make this? As far as I know, I can only place static html in  
/public folder.

---

<div class="post-metadata">

**Author:** ![konstantin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/858c86/32.png) [@konstantin](https://www.ruby-forum.com/u/konstantin)\
**Post date:** [September 15, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/variables-in-error-pages/148605/2 "2008-09-15T15:46:19Z")

</div>

I just want to raise 500 error with custom error message - this is the  
main aim.
