Forum Discussion

LoundesM's avatar
LoundesM
Contributor
9 years ago

Http Status Codes

Hi   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...
  • Shadid's avatar
    Shadid
    9 years ago

    Hi again,

     

    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.

     

    Regards,

    Shadid