if ( !ActionResponse.isNotSuccessful( response ) ) {
return;
}
if ( !response.hasEntity() ) {
throw new ActionFailedException( response.getStatus(), "unknown", "unknown", null );
}
try {
try ( InputStream inputStream = response.getEntityInputStream() ) {
throw new ActionFailedExceptionSerializer().deserialize( response.getStatus(), inputStream );