Added exceptions for 404 errors.