If the request's `Accept:` header signals a preference for serving images over text, return an image representing the 404/403 instead of serving a `text/html` response. Fixes: #23739.