@@ -428,6 +428,11 @@ const validationErrorResponse = {
428428 content : { 'application/json' : { schema : registeredSchemas . ApiError } } ,
429429} ;
430430
431+ const payloadTooLargeResponse = {
432+ description : 'Request body exceeds the 64KB maximum limit' ,
433+ content : { 'application/json' : { schema : registeredSchemas . ApiError } } ,
434+ } ;
435+
431436registry . registerPath ( {
432437 method : 'get' ,
433438 path : '/api/health' ,
@@ -537,6 +542,7 @@ registry.registerPath({
537542 content : { 'application/json' : { schema : registeredSchemas . CampaignDetailResponse } } ,
538543 } ,
539544 400 : validationErrorResponse ,
545+ 413 : payloadTooLargeResponse ,
540546 } ,
541547} ) ;
542548
@@ -638,6 +644,7 @@ registry.registerPath({
638644 } ,
639645 400 : validationErrorResponse ,
640646 404 : notFoundResponse ,
647+ 413 : payloadTooLargeResponse ,
641648 429 : { description : 'Rate limit exceeded' } ,
642649 } ,
643650} ) ;
@@ -662,6 +669,7 @@ registry.registerPath({
662669 } ,
663670 400 : validationErrorResponse ,
664671 404 : notFoundResponse ,
672+ 413 : payloadTooLargeResponse ,
665673 429 : { description : 'Rate limit exceeded' } ,
666674 } ,
667675} ) ;
@@ -686,6 +694,7 @@ registry.registerPath({
686694 } ,
687695 400 : validationErrorResponse ,
688696 404 : notFoundResponse ,
697+ 413 : payloadTooLargeResponse ,
689698 429 : { description : 'Rate limit exceeded' } ,
690699 } ,
691700} ) ;
@@ -711,6 +720,7 @@ registry.registerPath({
711720 } ,
712721 400 : validationErrorResponse ,
713722 404 : notFoundResponse ,
723+ 413 : payloadTooLargeResponse ,
714724 429 : { description : 'Rate limit exceeded' } ,
715725 } ,
716726} ) ;
0 commit comments