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
public enum ErrorMessages {
BAD_REQUEST_EMPTY_FIELDS(HttpStatus.BAD_REQUEST, "Fields must not be empty."),
UNAUTHORIZED_WRONG_LOGIN(HttpStatus.UNAUTHORIZED, "Invalid username or password."),
SERVICE_UNAVAILABLE_UNREACHABLE_URL(HttpStatus.SERVICE_UNAVAILABLE, "The target URL is unreachable."),
SERVER_ERROR_GENERAL("The external app returned a server error: ");
BAD_REQUEST_EMPTY_FIELDS(HttpStatus.BAD_REQUEST, "Fields must not be empty."), UNAUTHORIZED_WRONG_LOGIN(
HttpStatus.UNAUTHORIZED, "Invalid username or password."), SERVICE_UNAVAILABLE_UNREACHABLE_URL(
HttpStatus.SERVICE_UNAVAILABLE, "The target URL is unreachable."), SERVER_ERROR_GENERAL(
"The external app returned a server error: ");
private final HttpStatus status;
private final String message;
@@ -24,6 +24,4 @@ public enum ErrorMessages {
this.status = null;
this.message = message;
}
}