Curl exit code 78 cause pipeline exit successfully

When I try to fetch a deleted file by SFTP using curl, it return error 78
curl: (78) Could not open remote file for reading: SFTP server: No such file

I knew exit code 78 in drone pipeline means early exit successful, but it is not my intend here.
Is there any way to override this?