changed error return when failing a post so that it's more informative: