document controller returns ResponseEntity for status codes.