Get OkHttp Java request

I'm using Postman, and when I make a request GET, everything happens in a good and returns the JSON with the data.But when taking the code in java (below), this request and executes it, I am given the following message code=406, message=Not Acceptable, which is Strange as it works good in Postman.Does anyone know what it is?

OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("http://api.sualoja.com.br/clientes")
  .get()
  .addHeader("authorization", "Bearer d0f36dfb6ba2d153a29f4410411f737e3a6e205c")
  .addHeader("cache-control", "no-cache")
  .addHeader("postman-token", "0465578e-2915-c482-d425-8c00ee97ec6d")
  .build();

Response response = client.newCall(request).execute();

I tried to use another way to make request using Unirest but code below but returned me the MSM error, but with this message more: Unable to resolve Accept header to a representation, remembering that I took this code from Postman too, and that there it works quiet.

HttpResponse<String> response = Unirest.get("http://api.sualoja.com.br/clientes")
            .header("authorization", "Bearer 256ce87661709544aa32e6e97f779e0e5d9aa842")
            .header("cache-control", "no-cache")
            .header("postman-token", "23b4718d-3831-cf52-dc0a-b07a3f8caa1e")
            .asString();

I used the method to show the headers, and these headers are returned Transfer-Encoding=[chunked], Server=[nginx/1.10.2], Connection=[keep-alive], Date=[Tue, 03 Oct 2017 20:05:16 GMT], Content-Type=[application/problem+json], X-Powered-By=[PHP/7.1.10]

I tested with the code represented in shell that Postman allows me to get, and it worked Good, brought all the data in the terminal, but I need to do this in java.

People I finally got resolver.Eu I simply added this line to my GET .addHeader("Accept", "application/json; q=0.5") request, and by what I I understand, you will have to add a new line like this for each file type that your server returns, for example:

`.addHeader("Accept", "application/hal+json; q=0.5")
 .addHeader("Accept", "application/json; q=0.5")
 .addHeader("Accept", "application/x-www-form-urlencoded")`

Aah and my code was like this. (Using OkHttp):

OkHttpClient client = new OkHttpClient();

    Request request = new Request.Builder()
            .url("http://api.sualoja.com.br/clientes")
            .get()
            .addHeader("authorization", "Bearer 1c2b5f30582b4cf2831812487a34d48646580829")
            .addHeader("cache-control", "no-cache")
            .addHeader("Accept", "application/json; q=0.5")
            .addHeader("postman-token", "57989a0f-8dec-d104-c6e7-b6e2cb64be97")
            .build();

    Response response = client.newCall(request).execute();
    System.out.println(response.body().string());
Author: TheJ, 2017-10-02