Gracefully handle logging 4xx responses