You can use HttpResponse class and using that you can access the status code as follows;
HttpResponse httpResponse = client.newCall(request).execute();
httpResponse.getStatusLine().getStatusCode();
If you are using com.squareup.okhttp.Response then you can use the code() method to get the HTTP status code.
Response httpResponse = client.newCall(request).execute();
httpResponse.code();