front bugfix and add ratio for 401/403 errors