I have a link that redirect users on the 'unexpected error is occured' page when they type a wrong code and submit it. If the code is valide the redirection is done and they reach the correct page.
I would like to know how to check weither the redirected page will be the 'unexpected error is occured' page or the correct one.