Skip to main content

http.invalid

http.invalid(code...)

Description

Adds the code to the invalid results.

Parameters

ParameterTypeExplanation
codeIntegerThe code to add to the invalid results. Any amount of codes can be passed in as arguments.

Example

http = option.http

http.invalid(200)
http.get("https://postman-echo.com/status/200")