RabbitWeb - Set HTTP Status Codes

Hi folks

We’re building a JSON API on top of RabbitWeb.

Has anyone figured out how to set the HTTP status code manually. For example, 422.

Also, rather than show error HTML, can we render an error JSON file?

Thanks

Tobin