Specifying a invalid file (non-existing) to the ldapmodify command produce the following error:
$ ./ldapmodify -D "cn=myself" -w password -f invalid_file
An error occurred while attempting to open the LDIF file bad for reading: bad
(No such file or directory)
$ echo $?
=> the exit code should be 89 (Parameter Error)