Fixing failure to capture 404 errors and pass the status along