forStatusCode method
Adds code to the set of acceptable HTTP status codes.
By default only 200 is accepted. Call this method multiple times to
accept a range of codes. Ignored when forStatusCodeMatching is set.
Returns this for chaining.
Implementation
HttpWaitStrategy forStatusCode(int code) {
_statusCodes.add(code);
return this;
}