function validateProperVerbStatusCode(action) {
    for (const transaction of action.transactions || []) {
      let stz = lodash.get(transaction, 'response.statusCode'),
      vrb = lodash.get(transaction, 'request.method');

      if (!_validStatusAndVerb(vrb, stz)) {
        return `Non-valid status code (${stz.toValue()}) for verb (${vrb.toValue()})`;
      }
    }
    return true;
  }
/*
    Validates proper combinations of request method and response status code.

  @targets: Action
  @minim: true
  */
Validates proper combinations of request method and response status code.
Validates proper combinations of request method and response status code .
function validateProperVerbStatusCode(action) {
    for (const transaction of action.transactions || []) {
      let stz = lodash.get(transaction, 'response.statusCode'),
      vrb = lodash.get(transaction, 'request.method');
      if (!_validStatusAndVerb(vrb, stz)) {
        return `Non-valid status code (${stz.toValue()}) for verb (${vrb.toValue()})`;
      }
    }
    return true;
  }
function validateProperVerbStatusCode ( action ) { for ( const transaction of action . transactions || [ ] ) { let stz = lodash . get ( transaction , 'response.statusCode' ) , vrb = lodash . get ( transaction , 'request.method' ) ; if ( ! _validStatusAndVerb ( vrb , stz ) ) { return ` ${ stz . toValue ( ) } ${ vrb . toValue ( ) } ` ; } } return true ; }
Validates proper combinations of request method and response status code.
Validates proper combinations of request method and response status code .