Added 404 error checking for questions and answers