• Tutorials
  • Courses
  • Tracks

Question 5

Last Updated :
Discuss
Comments

Which Spring annotation can be used in a custom exception class to specify the HTTP status code?

@HttpStatus

@ResponseStatus

@StatusCode

@StatusMapping

Share your thoughts in the comments