reserve

status handler

🔝 REserve documentation

Ends the request with a given status.

{
  "match": "^/private/.*",
  "status": 403
}

Example of mapping with the status handler

Features

status message
403 Forbidden
404 Not found
405 Method Not Allowed
500 Internal Server Error
501 Not Implemented
508 Loop Detected

Options

option type default description
headers object {} Additional response headers (capturing groups can be used as substitution parameters in values)