Handle HTTP client errors when posting