Combine IpWhitelist and Errors Middlewares. Is it possible?

Hi,

I would like to do the following. Combine these two middlewares. If the user is not in the whitelist, then show an error page.
As far as I understand these 2 middlewares don't work together? Or can they be combined somehow? Didn't find anything in the documentation.
IpWhitelist works, but i become only text in Response, but I would like to get an error page.

................
      entryPoints:
        - websecure
      middlewares:
        - d-whitelist
        - service-errorpages
.................
middlewares:
    d-whitelist:
      ipWhiteList:
        sourceRange:
          - "95.95.95.95/32"
    service-errorpages:
      errors:
        status:
          - "401"
          - "403"
          - "404"
          - "500"
        service: tools
        query: "/{status}.html"

Thanks!