Capture custom response code related to an application

You can capture them for example from a Method argument/return value or HTTP Header using Request attributes.