Is there a way to see what the HTTP status code is for a given page in Drupal?
For example, if I land on an access denied or page not found, can I see that in a status code and use it?
I am using Contexts to set block layouts, but on a 403/404 page, I don't want to show blocks. The same thing goes for Views- for some reason the pages are not redirecting to my custom error page, so setting ~path is not working.
I know there is a Context Error module that sets context if the page is 403 or 404, but I want to do the opposite, where the context is active IF the page is neither a 403 or 404, so I need to check the headers, not the path.
Edit: Unless there is a part of Context that I am missing to check page/view access?