Handle errors for post indexer API