rest.invalid
rest.invalid(code...)
Description
Adds the code to the invalid results.
Parameters
| Parameter | Type | Explanation |
|---|---|---|
| code | Integer | The 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")