Added 404 and 405 error message handling for Terms of Usage.