package ru.mtuci.messenger.exception; import org.springframework.http.HttpStatus; import ru.mtuci.messenger.api.model.ErrorError; public class PayloadTooLargeException extends ApiException { public PayloadTooLargeException() { super(HttpStatus.PAYLOAD_TOO_LARGE, ErrorError.CodeEnum.PAYLOAD_TOO_LARGE, "Файл слишком большой"); } }