QuestionQ22

VerifiedSecure Coding Practices for Error Handling

Which of the following is used to map custom exceptions to a status code?

Explanation

Spring’s @ResponseStatus annotation marks an exception class with the HTTP status code to return when that exception is raised.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!