fix issue if bad part name is given it shows the default head
Some checks failed
deploy / deploy (push) Failing after 35s

This commit is contained in:
Lee
2024-04-08 07:37:22 +01:00
parent 88da585d47
commit 6144a2e1f6
2 changed files with 16 additions and 3 deletions

View File

@ -0,0 +1,11 @@
package cc.fascinated.model.response.impl;
import cc.fascinated.model.response.Response;
import org.springframework.http.HttpStatus;
public class InvalidPartResponse extends Response {
public InvalidPartResponse() {
super(HttpStatus.NOT_FOUND, "Invalid part name.");
}
}