How to restrict imagery providers from sending requests that will fail definitely

For some reason, my custom imagery provider only have tiles for some area(level, x, y).
When dragging the globe around, many network errors show up.
How can I restrict Cesium from sending requests that I know they will fail certainly?