Stream Personalization implements fallback/error management functionalities depending on the workflow: **linear** (open manifests with real-time constraint) versus **non-linear** (closed manifests).

The following errors are managed at Stream Personalization level when connecting to a given ad server:

- ADS time-out: the AD server took too much time to respond.
- VAST/VMAP or SCTE-130-3 invalid response.

To configure error management behavior depending on the workflow, follow these steps:

1. You have started configuring the [ad decision server general parameters](/traditional-products-and-appliances/components/stream-personalization/placement/config-ad-server).

2. Go to the **Behavior on ADS response** tab.

3. Configure the following settings.

   1. **Non-linear**

      <table>
        <thead>
          <tr>
            <th style="text-align: left">Parameter</th>
            <th style="text-align: left">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td style="text-align: left">On error</td>
            <td style="text-align: left">upon ADS error, choose between the following available options:<br>- <strong>Keep original</strong>: content is not modified.<br>- <strong>Truncate</strong>: ad breaks delineated using SCTE-35 markers are stripped out.</td>
          </tr>
          <tr>
            <td style="text-align: left">On empty response</td>
            <td style="text-align: left">Upon empty response from the ad server (no ads). Choose between <strong>Keep original</strong> or <strong>Truncate</strong> (same as above).</td>
          </tr>
        </tbody>
      </table>

   2. **Linear**

      <table>
        <thead>
          <tr>
            <th style="text-align: left">Parameter</th>
            <th style="text-align: left">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td style="text-align: left">On error</td>
            <td style="text-align: left">upon ADS error, choose between the following available options:<br>- <strong>Keep original</strong>: content is not modified.<br>- <strong>Pad</strong>: replace ad spot/ad break with content padding (usually a repeated small chunk of 1 second for instance). When selecting Pad, you need to specify where this padding is fetched from.</td>
          </tr>
          <tr>
            <td style="text-align: left">On empty response</td>
            <td style="text-align: left">Upon empty response from the ad server (no ads). Choose between <strong>Keep original</strong> or <strong>Pad</strong> (same as above).</td>
          </tr>
          <tr>
            <td style="text-align: left">Decision adjustment method</td>
            <td style="text-align: left">When the ad assets do not meet the requirements in terms of duration, choose the behaviour between the following available options:<br>- <strong>None</strong>: no adjustment performed.<br>- <strong>Pad</strong>: fill the ad with padding when the ad returned is too small.<br>- <strong>Loop</strong>: repeat the ad or ad break until we exit the placement opportunity.<br>- <strong>Return to Live</strong>: return to live. Only available in HLS.</td>
          </tr>
        </tbody>
      </table>

4. If you selected Pad, new parameters are displayed to configure padding/ad filler:

   <table>
     <thead>
       <tr>
         <th style="text-align: left">Parameter</th>
         <th style="text-align: left">Description</th>
       </tr>
     </thead>
     <tbody>
       <tr>
         <td style="text-align: left">Source URL</td>
         <td style="text-align: left">Manifest source URL of the padding/filler asset.</td>
       </tr>
       <tr>
         <td style="text-align: left">Distribution URL</td>
         <td style="text-align: left">Distribution URL of the padding/filler asset.</td>
       </tr>
     </tbody>
   </table>
