how about
```ruby
render :layout => 'login', :status => params[:status] || :ok
```