Redirect Image with 404 Status Code

I’m trying to use something like this


$this->redirect('http://via.placeholder.com/350x150?text=404', 404)

However, when redirect status code is 404 the redirect doesn’t work, but when I use 301 or 302 it works.

Could be because 404 is not a redirect code. 404 simply means "not found".