[BAEL-14274] - Fixed article code for https://www.baeldung.com/building-a-restful-web-service-with-spring-and-java-based-configuration
This commit is contained in:
parent
447c8c3599
commit
81eeba2e32
|
@ -0,0 +1,8 @@
|
|||
package com.baeldung.web.exception;
|
||||
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.web.bind.annotation.ResponseStatus;
|
||||
|
||||
@ResponseStatus(value = HttpStatus.BAD_REQUEST)
|
||||
public class BadRequestException extends RuntimeException {
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
package com.baeldung.web.exception;
|
||||
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.web.bind.annotation.ResponseStatus;
|
||||
|
||||
@ResponseStatus(value = HttpStatus.NOT_FOUND)
|
||||
public class ResourceNotFoundException extends RuntimeException {
|
||||
}
|
Loading…
Reference in New Issue