QuestionQ22Verified/Secure Coding Practices for Error HandlingCopy linkReport a problemAsk AstroTutorSave questionWhich of the following is used to map custom exceptions to a status code?A@ResponseStatusB@ResponseStatusCodeC@ResponseCodeD@ScacusCodeShow AnswerAnswerExplanationSpring’s @ResponseStatus annotation marks an exception class with the HTTP status code to return when that exception is raised.Learn moreSpring Framework ResponseStatus APIShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion