Check for `rpc_fail` during index creation

Check for `rpc_fail` in index HTTP resource and return 500.