Exit the current request and return status code

This action is usually used in conjunction with a condition, such as to exit the request and return a 404 status code as soon as the request matches the specified URI.

This action has only one parameter: the status code, which indicates the HTTP status code, such as 200, 400, etc.

Example request

$ curl http://test.com/anything -v
...
< HTTP/1.1 400 Bad Request
...

You can see that the server returns a 400 status code, which is consistent with our rule configuration.