changed format

This commit is contained in:
2026-03-30 22:43:07 +02:00
parent c15c7a0d61
commit 2387d41ebb
@@ -7,10 +7,10 @@ import lombok.Getter;
@Getter @Getter
public enum ErrorMessages { public enum ErrorMessages {
BAD_REQUEST_EMPTY_FIELDS(HttpStatus.BAD_REQUEST, "Fields must not be empty."), BAD_REQUEST_EMPTY_FIELDS(HttpStatus.BAD_REQUEST, "Fields must not be empty."), UNAUTHORIZED_WRONG_LOGIN(
UNAUTHORIZED_WRONG_LOGIN(HttpStatus.UNAUTHORIZED, "Invalid username or password."), HttpStatus.UNAUTHORIZED, "Invalid username or password."), SERVICE_UNAVAILABLE_UNREACHABLE_URL(
SERVICE_UNAVAILABLE_UNREACHABLE_URL(HttpStatus.SERVICE_UNAVAILABLE, "The target URL is unreachable."), HttpStatus.SERVICE_UNAVAILABLE, "The target URL is unreachable."), SERVER_ERROR_GENERAL(
SERVER_ERROR_GENERAL("The external app returned a server error: "); "The external app returned a server error: ");
private final HttpStatus status; private final HttpStatus status;
private final String message; private final String message;
@@ -19,11 +19,9 @@ public enum ErrorMessages {
this.status = status; this.status = status;
this.message = message; this.message = message;
} }
ErrorMessages(String message) { ErrorMessages(String message) {
this.status = null; this.status = null;
this.message = message; this.message = message;
} }
}
}