servicestack - Customize ResponseStatus Error code attribute -


i've been working servicestack while , need know if it's possible customize responsestatus object when exception thrown.

so response this:

{"responsestatus":{"errorcode":"passwordnotvalidexception", "message":"user defined error","errors":[]}} 

i update "errorcode" field returns custom error code come enum, this:

{"responsestatus":{"errorcode":"passwordnotvalid", "message":"user defined error","errors":[]}} 

is possible?

please read servicestack's error handling wiki page, lists potential error customizations available in servicestack.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

ios - iPhone/iPad different view orientations in different views , and apple approval process -

Shrink a YouTube video to responsive width -