Http 406 not acceptable how to fix. Also, this method does not accept application/json.