Commit 773c78a3 authored by neo's avatar neo

[DEV] fixed exception handler for 412

parent ea5a057f
package pwc.taxtech.atms.exception;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
public class PreconditionFailedException extends ApiException {
......@@ -21,6 +22,6 @@ public class PreconditionFailedException extends ApiException {
@Override
public <Object> ResponseEntity handle() {
return ResponseEntity.notFound().build();
return ResponseEntity.status(HttpStatus.PRECONDITION_FAILED).build();
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment