HTTP Response
Learn HTTP Response (Request Handling, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes HTTP response is what the server returns: a status line, headers and an optional body. In Spring MVC you shape it with return values, ResponseEntity , @ResponseStatus or the raw HttpServletResponse . Status codes : 2xx success, 3xx redirect, 4xx client error, 5xx server error; choose them on purpose, for example 201 Created after a POST.