Support sub-types of ResponseEntity

Issue: SPR-10207