Throw an IOException on post failure