It's worth refactoring this into a method, which I would add to `ApplicationController`:
```ruby
  def render_error(status)
    render "errors/error_#{status}", status: status, layout: 'error_page'
  end
```