Log on bad request and bad response exceptions.