defect
In principle, 2xx HTTP status codes indicate "success." However, a request that returns, for example, a 204 "No content" status code will cause the application to crash.
There is no way to explicitly respond to HTTP status codes. You can only either expect a JSON object or configure a built-in request check.
Improvement
Special post-processing can be configured for a range of status codes, specifically the 1XX, 2XX, 3XX, 4XX, and 5XX status code ranges. If the response does not have one of these status codes, the default handler is used:
Test
- Configure an OpenAPI server as a target that returns responses with different status codes.
- Configure different handlers for these.
- Expected Behavior: The handler configured for the response’s status code is executed.