Handling 404 errors on dispatch