Easy way to show the HTTP status (e.g. 301/404 etc)

Hi,

Being new to rails, I’d like to put something at the bottom of my global
application layout so that it displays the response code that would be
delivered by the webserver in a live environment. Being inexperienced, I
am cautious about being SEO-friendly and would feel more comfortable
knowning what codes are being sent for each page.

I figure something at the bottom of the global layout of every page e.g.
HTTP 404, would be easy to remove at the end.

Is there a quick line I can add? I’ve seen things like headers[“Code”]
and stuff, but I’m getting a bit confused as to whether it would be
useful here where I just want to display rather than force an actual
value.

Thanks,
Andy.