invoke
Sends the entity to the consumer.
Parameters
entity
The entity to post as input.
Throws
when the server responds with HttpStatusCode.Unauthorized.
when the server responds with HttpStatusCode.Forbidden.
when the server responds with HttpStatusCode.NotFound or HttpStatusCode.Gone.
for other non-success status codes.