My new service offers a solution for error pages in web apps by providing a code snippet that can be easily copied and pasted into the error page templates, similar to Google Analytics. The status code is embedded in a hidden input within the installation code. However, I want to avoid making the installation code dependent on server-side languages like PHP or Ruby. I am looking for a dynamic method to retrieve the status code from the HTTP request without hard-coding them, which would require separate installation codes for each error page (though we are mainly concerned with 500s & 404s). One option seems too complex, so any suggestions not found through Google or my developer friends would be greatly appreciated.