ResponseEntity
Also written: ResponseEntity.of
A whole response: status, headers and body. Methods such as ok, notFound, created and noContent build common ones, and ResponseEntity.of turns an Optional into 200 or 404.
Also written: ResponseEntity.of
A whole response: status, headers and body. Methods such as ok, notFound, created and noContent build common ones, and ResponseEntity.of turns an Optional into 200 or 404.