chiradeep / go-nitro

A Golang client to the Citrix ADC API
Apache License 2.0
18 stars 21 forks source link

Add FindResourceArrayWithParams #36

Closed giorgos-nikolopoulos closed 4 years ago

giorgos-nikolopoulos commented 4 years ago

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.