Users wishing to provide their own implementation of reject action need a way how to decide which HTTP status code to use depending on the error code, e.g. to map error code ENTITY_NOT_FOUND to status code 404.
See also the discussion in #1867
Acceptance criteria