S

Satya • 3.38K Points
Extraordinary

Q. Which annotation is used to send HTTP status codes in response?

  • (A) @ResponseStatus
  • (B) @ExceptionHandler
  • (C) @ControllerAdvice
  • (D) @CrossOrigin
  • Correct Answer - Option(A)
  • Views: 1
  • Filed under category Spring MVC
  • Hashtags:

Explanation by: Satya
@ResponseStatus allows specifying the HTTP status code to return from a handler method.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.