Handle errors in handle response