Forum Discussion

nisgupta's avatar
nisgupta
Valued Contributor
4 years ago

We Application Error -HTTP Status 404 Not Found - Not able to catch this error

We do have error appear for our web applications due to - database down, server down, image get broken. We verify the error in browser title. Recently we saw anoher error - HTTP Status 404 - Not Foun...
  • YuriPeshekhonov's avatar
    4 years ago

    Hello,

     

    I suppose the strings that you compare have some insignificant differences. This could be a different "-" sign, or extra space in the end, for example. 

     

    Please get the actualBrowsertitle variable value and copy it to Notepad, then press Enter and paste the value that you store in the string variable as a second row. 

    var error_http_status_404 = "HTTP Status 404 - Not Found"

     

    Try comparing them in Notepad (e.g. use search to find a string, you should get two results by one search). Pay attention to the spaces at the end of the string, one of them could contain them, another one doesn't not.