Simple way of writing the body to the request
Handle HTTP errors properly