#16 is not good enough. execute method should return contents of response.
If you want to know either 204 (No Content) or any errors, it need to check status code like below.
my $content = $api->execute().
unless ($content) {
if ($api->response->is_no_content) {
# success
} else {
# error
}
}
I will add response method that returns response data includes headers, status, content.
#16 is not good enough. execute method should return contents of response.
If you want to know either 204 (No Content) or any errors, it need to check status code like below.
I will add response method that returns response data includes headers, status, content.