Skip to main content

rest.invalid

rest.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.rest

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