Http Status Codes
is there a way of adding additional http status codes to the pre defined list for virt responses?
creating a virt but need a status code of 428 - Precondition Required but that isnt in the drop down list
failing the ability to configure that list is it possible to set the status on the fly? and if so how would I do that?
Right now, this is not possible. It is the underlying HttpServletResponse which sets the reason phrase from the status code, and 428 is not there so it does not find any mapping reason phrase.
By the way, as a workaround you can send a custom header in the response with the reason phrase (Precondition Required), if that helps.