When custom error is created in check_resource_exists, use it