The ResourceMissingErrorCode is there to distinguish if a 404 HTTP status is actually a resource missing or some other kind of error.
Usually if the resource does not exist there is a 404 HTTP and some non zero NITRO errorcode.
The purpose of the option is to check this non zero errorcode and determine if it is the error expected when the resource is absent or it is an errorcode that signifies some other condition.
In the latter case the function will return with error.
If we know that a 404 on a GET from NITRO always means the resource is not there and not some other error condition we can safely disregard this option.
The
ResourceMissingErrorCode
is there to distinguish if a 404 HTTP status is actually a resource missing or some other kind of error.Usually if the resource does not exist there is a 404 HTTP and some non zero NITRO errorcode. The purpose of the option is to check this non zero errorcode and determine if it is the error expected when the resource is absent or it is an errorcode that signifies some other condition.
In the latter case the function will return with error.
If we know that a 404 on a GET from NITRO always means the resource is not there and not some other error condition we can safely disregard this option.