private void sendAuthors() {


        for(Author author : authors) {
            Response response = authorTarget
                    .request(MediaType.APPLICATION_JSON)
                    .post(Entity.entity(author, MediaType.APPLICATION_JSON));
            if(response.getStatus() >= 300){
                System.out.println("Error: " + response.getStatusInfo().getReasonPhrase());
                return;
            }
        }
    }