Clean up api error handling. Send POST data to https proxy.