Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

status codes springboot

@GetMapping("/methodlevel")
    @ResponseStatus(code = HttpStatus.NOT_FOUND, reason = "Resource was not found on the server")
    public String notFound() {
        return "";
    }
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #status #codes #springboot
ADD COMMENT
Topic
Name
6+6 =