404 error in fiddler logs

2 posts, 0 answers
  1. Pooja
    Pooja avatar
    2 posts
    Member since:
    Apr 2015

    Posted 24 Apr 2015 Link to this post

    Hi All,


    I am using Fiddler4.4.9.4.I am accessing a java application and can see http logs in fiddler. On hitting the application url in the browser(IE), I can see 404 error in fiddler for the following url:


    Is there a way I can restrict this url from getting logged in fiddler using web.xml or some other setting.

    In general, is there a way to restrict 404 error in fiddler using java code?

    The application runs fine and there is no issue with this error in fiddler.Still,I need to remove this 404 error from fidder.Its a business requirement.

    I tried googling aboult but did not find any thing suitable.

    Any help is highly appreciated.Thanks in advance.

  2. Eric Lawrence
    Eric Lawrence avatar
    832 posts

    Posted 24 Apr 2015 Link to this post

    Hello, Pooja-- It's not clear what you're asking. If you want to ensure that a 404 doesn't appear in the Fiddler logs, the best way to do so would be to fix either the client or the server so the client doesn't request a URL that the server does not have content for. That way, the request doesn't show up in Fiddler and the client doesn't waste its time asking the server for something it doesn't have, and the server doesn't waste its time telling the client that the requested item doesn't exist.

    If you're saying: "No, I want my client and server to waste time, but I don't want Fiddler to show that they are doing so. Can I hide 404s so they don't show up in Fiddler?" the answer is, yes, of course you can configure Fiddler to hide anything you want. Click Rules > Customize Rules. Scroll to OnBeforeResponse, and inside the method add the code:

       if (oSession.responseCode == 404) { oSession["ui-hide"] = "hiding 404s..."; }

    Eric Lawrence

    See What's Next in App Development. Register for TelerikNEXT.

Back to Top