Ruby on Rails – How do I access the HTTP status code in my ERB view?
Suppose I have a controller which sometimes renders the view normally, and sometimes renders the view with HTTP status code 409. How do change what is displayed in the view based on the status code?