diff --git a/v2/pkg/protocols/http/operators.go b/v2/pkg/protocols/http/operators.go index 0b05b895..0c1fcb99 100644 --- a/v2/pkg/protocols/http/operators.go +++ b/v2/pkg/protocols/http/operators.go @@ -24,7 +24,11 @@ func (r *Request) Match(data map[string]interface{}, matcher *matchers.Matcher) if !ok { return false } - return matcher.Result(matcher.MatchStatusCode(statusCode.(int))) + status, ok := statusCode.(int) + if !ok { + return false + } + return matcher.Result(matcher.MatchStatusCode(status)) case matchers.SizeMatcher: return matcher.Result(matcher.MatchSize(len(item))) case matchers.WordsMatcher: