Microsoft.Rest.HttpOperationException: Operation returned an invalid status code 'UnsupportedMediaType'

working-out-loud
#1

I was getting this error in my API when testing the client side
It turned out to be because we were trying to avoid a request object.
When we added a request object with a dummy property the Autorest Code Get worked correctly