improved reporting of http status 500 errors and retries