Skip to main content

rest.ok

rest.ok(code...)

Description

Adds the code to the ok results.

Parameters

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

Example

http = option.rest

http.ok(404, 405)
http.get("https://postman-echo.com/status/404")
http.get("https://postman-echo.com/status/405")