```ruby
class ErrorsController < ApplicationController
  skip_before_action :authorize

  def not_found
    render layout: nil
  end
end
```

Fix error code on 404 page response.
user
```ruby
class ErrorsController < ApplicationController
  skip_before_action :authorize

  def not_found
    render layout: nil, status: :not_found
  end
end
```
assistant