Doesn't the man page for
shasum mention something similar like the OpenBSD man page
cksum(1)?
Code:
EXIT STATUS
The cksum and sum utilities exit 0 on success or >0 if an error occurred.
An error code of zero indicating success is quite standard on Unix and Unix-look-a-likes