http_post_api with expectedStatus param