responds With Status
Associates this stub with a body-free response carrying only an HTTP status code.
Example (Java):
mokksy.get(spec -> spec.path("/ping")).respondsWithStatus(204);Content copied to clipboard
Parameters
status Code
The HTTP status code to return (e.g. 204, 404).