hasStatusCode
Check if the given RestRequestException has a matching integer status code.
Receiver
Exception object to check.
Return
true if at least one status code matches, false otherwise.
Parameters
codes
Status codes to check for.