package com.example.exceptions; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; @ResponseStatus(code = HttpStatus.NOT_FOUND) public class PasswordsDoNotMatchException extends RuntimeException{ public PasswordsDoNotMatchException() { super("Passwords do not match exception."); } }