You can allow only a specific set of HTTP status codes to be returned from a request to a data source. You can create a comma separated list and/or a range of acceptable status codes.
For example, you can create the following list:
200-399, 403, 404, 500
To set HTTP status codes, follow these steps.
In the Edit Data Source form, expand Enable Authentication, Caching, Proxy, Insecure Access.
In the Acceptable HTTP Status Codes field, enter values separated by commas.
Click Preview Data Source (optional).
Click Save Data Source.