I'm developing an extension to Firefox which gives an useful
suggestions(URLs) to the user when he ends up with an 404 or DNS
error. Can anyone tell me, which type of message is sent by server to
browser, how can I catch it and take it as an input to my JavaScript
code which handles the error.