```ruby
class ErrorController < ApplicationController
  slimmer_template "wrapper"

  def handler
    # defer any errors to be handled in ApplicationController
    raise request.env[:__api_error]
  end
end
```

Update error controller to use core_layout
user
```ruby
class ErrorController < ApplicationController
  slimmer_template "core_layout"

  def handler
    # defer any errors to be handled in ApplicationController
    raise request.env[:__api_error]
  end
end
```
assistant