If an API endpoint does not send expected error codes to flag failure conditions, you can manually configure error codes. The following code example lists possible HTTP error codes/ messages an API endpoint might return, which can then result in the failure of operations.
Thanks for questioning this. This feedback allows us to look at our docs from a different perspective. I created CONDOCS-6753 to track the work to clarify the docs where they’re unclear, and possibly note behavior with some edge cases.