Skip to content

Commit df1036e

Browse files
fix: update glossary endpoints response error codes
1 parent 6366c85 commit df1036e

3 files changed

Lines changed: 18 additions & 293 deletions

File tree

openapi.json

Lines changed: 7 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -797,30 +797,18 @@
797797
}
798798
}
799799
},
800-
"400": {
801-
"$ref": "#/components/responses/BadRequestGlossaries"
802-
},
803800
"401": {
804801
"$ref": "#/components/responses/Unauthorized"
805802
},
806803
"403": {
807-
"$ref": "#/components/responses/ForbiddenGlossaries"
804+
"$ref": "#/components/responses/Forbidden"
808805
},
809806
"404": {
810807
"$ref": "#/components/responses/NotFound"
811808
},
812-
"413": {
813-
"$ref": "#/components/responses/PayloadTooLarge"
814-
},
815-
"415": {
816-
"$ref": "#/components/responses/UnsupportedMediaTypeGlossaries"
817-
},
818809
"429": {
819810
"$ref": "#/components/responses/TooManyRequests"
820811
},
821-
"456": {
822-
"$ref": "#/components/responses/QuotaExceededGlossaries"
823-
},
824812
"500": {
825813
"$ref": "#/components/responses/InternalServerError"
826814
},
@@ -899,17 +887,11 @@
899887
"$ref": "#/components/responses/Unauthorized"
900888
},
901889
"403": {
902-
"$ref": "#/components/responses/ForbiddenGlossaries"
903-
},
904-
"404": {
905-
"$ref": "#/components/responses/NotFound"
890+
"$ref": "#/components/responses/Forbidden"
906891
},
907892
"413": {
908893
"$ref": "#/components/responses/PayloadTooLarge"
909894
},
910-
"415": {
911-
"$ref": "#/components/responses/UnsupportedMediaTypeGlossaries"
912-
},
913895
"429": {
914896
"$ref": "#/components/responses/TooManyRequests"
915897
},
@@ -983,23 +965,11 @@
983965
"$ref": "#/components/responses/Unauthorized"
984966
},
985967
"403": {
986-
"$ref": "#/components/responses/ForbiddenGlossaries"
987-
},
988-
"404": {
989-
"$ref": "#/components/responses/NotFound"
990-
},
991-
"413": {
992-
"$ref": "#/components/responses/PayloadTooLarge"
993-
},
994-
"415": {
995-
"$ref": "#/components/responses/UnsupportedMediaTypeGlossaries"
968+
"$ref": "#/components/responses/Forbidden"
996969
},
997970
"429": {
998971
"$ref": "#/components/responses/TooManyRequests"
999972
},
1000-
"456": {
1001-
"$ref": "#/components/responses/QuotaExceededGlossaries"
1002-
},
1003973
"500": {
1004974
"$ref": "#/components/responses/InternalServerError"
1005975
},
@@ -1068,18 +1038,9 @@
10681038
"404": {
10691039
"$ref": "#/components/responses/NotFound"
10701040
},
1071-
"413": {
1072-
"$ref": "#/components/responses/PayloadTooLarge"
1073-
},
1074-
"415": {
1075-
"$ref": "#/components/responses/UnsupportedMediaTypeGlossaries"
1076-
},
10771041
"429": {
10781042
"$ref": "#/components/responses/TooManyRequests"
10791043
},
1080-
"456": {
1081-
"$ref": "#/components/responses/QuotaExceededGlossaries"
1082-
},
10831044
"500": {
10841045
"$ref": "#/components/responses/InternalServerError"
10851046
},
@@ -1182,9 +1143,6 @@
11821143
"413": {
11831144
"$ref": "#/components/responses/PayloadTooLarge"
11841145
},
1185-
"415": {
1186-
"$ref": "#/components/responses/UnsupportedMediaTypeGlossaries"
1187-
},
11881146
"429": {
11891147
"$ref": "#/components/responses/TooManyRequests"
11901148
},
@@ -1235,18 +1193,9 @@
12351193
"404": {
12361194
"$ref": "#/components/responses/NotFound"
12371195
},
1238-
"413": {
1239-
"$ref": "#/components/responses/PayloadTooLarge"
1240-
},
1241-
"415": {
1242-
"$ref": "#/components/responses/UnsupportedMediaTypeGlossaries"
1243-
},
12441196
"429": {
12451197
"$ref": "#/components/responses/TooManyRequests"
12461198
},
1247-
"456": {
1248-
"$ref": "#/components/responses/QuotaExceededGlossaries"
1249-
},
12501199
"500": {
12511200
"$ref": "#/components/responses/InternalServerError"
12521201
},
@@ -1316,18 +1265,9 @@
13161265
"404": {
13171266
"$ref": "#/components/responses/NotFound"
13181267
},
1319-
"413": {
1320-
"$ref": "#/components/responses/PayloadTooLarge"
1321-
},
1322-
"415": {
1323-
"$ref": "#/components/responses/UnsupportedMediaTypeGlossaries"
1324-
},
13251268
"429": {
13261269
"$ref": "#/components/responses/TooManyRequests"
13271270
},
1328-
"456": {
1329-
"$ref": "#/components/responses/QuotaExceededGlossaries"
1330-
},
13311271
"500": {
13321272
"$ref": "#/components/responses/InternalServerError"
13331273
},
@@ -1389,18 +1329,9 @@
13891329
"404": {
13901330
"$ref": "#/components/responses/NotFound"
13911331
},
1392-
"413": {
1393-
"$ref": "#/components/responses/PayloadTooLarge"
1394-
},
1395-
"415": {
1396-
"$ref": "#/components/responses/UnsupportedMediaTypeGlossaries"
1397-
},
13981332
"429": {
13991333
"$ref": "#/components/responses/TooManyRequests"
14001334
},
1401-
"456": {
1402-
"$ref": "#/components/responses/QuotaExceededGlossaries"
1403-
},
14041335
"500": {
14051336
"$ref": "#/components/responses/InternalServerError"
14061337
},
@@ -1469,9 +1400,6 @@
14691400
"413": {
14701401
"$ref": "#/components/responses/PayloadTooLarge"
14711402
},
1472-
"415": {
1473-
"$ref": "#/components/responses/UnsupportedMediaTypeGlossaries"
1474-
},
14751403
"429": {
14761404
"$ref": "#/components/responses/TooManyRequests"
14771405
},
@@ -1546,22 +1474,16 @@
15461474
"$ref": "#/components/responses/Unauthorized"
15471475
},
15481476
"403": {
1549-
"$ref": "#/components/responses/ForbiddenGlossaries"
1550-
},
1551-
"404": {
1552-
"$ref": "#/components/responses/NotFound"
1477+
"$ref": "#/components/responses/Forbidden"
15531478
},
15541479
"413": {
15551480
"$ref": "#/components/responses/PayloadTooLarge"
15561481
},
1557-
"415": {
1558-
"$ref": "#/components/responses/UnsupportedMediaTypeGlossaries"
1559-
},
15601482
"429": {
15611483
"$ref": "#/components/responses/TooManyRequests"
15621484
},
15631485
"456": {
1564-
"$ref": "#/components/responses/QuotaExceeded"
1486+
"$ref": "#/components/responses/QuotaExceededGlossaries"
15651487
},
15661488
"500": {
15671489
"$ref": "#/components/responses/InternalServerError"
@@ -1618,30 +1540,15 @@
16181540
}
16191541
}
16201542
},
1621-
"400": {
1622-
"$ref": "#/components/responses/BadRequestGlossaries"
1623-
},
16241543
"401": {
16251544
"$ref": "#/components/responses/Unauthorized"
16261545
},
16271546
"403": {
1628-
"$ref": "#/components/responses/ForbiddenGlossaries"
1629-
},
1630-
"404": {
1631-
"$ref": "#/components/responses/NotFound"
1632-
},
1633-
"413": {
1634-
"$ref": "#/components/responses/PayloadTooLarge"
1635-
},
1636-
"415": {
1637-
"$ref": "#/components/responses/UnsupportedMediaTypeGlossaries"
1547+
"$ref": "#/components/responses/Forbidden"
16381548
},
16391549
"429": {
16401550
"$ref": "#/components/responses/TooManyRequests"
16411551
},
1642-
"456": {
1643-
"$ref": "#/components/responses/QuotaExceeded"
1644-
},
16451552
"500": {
16461553
"$ref": "#/components/responses/InternalServerError"
16471554
},
@@ -1704,18 +1611,9 @@
17041611
"404": {
17051612
"$ref": "#/components/responses/NotFound"
17061613
},
1707-
"413": {
1708-
"$ref": "#/components/responses/PayloadTooLarge"
1709-
},
1710-
"415": {
1711-
"$ref": "#/components/responses/UnsupportedMediaTypeGlossaries"
1712-
},
17131614
"429": {
17141615
"$ref": "#/components/responses/TooManyRequests"
17151616
},
1716-
"456": {
1717-
"$ref": "#/components/responses/QuotaExceeded"
1718-
},
17191617
"500": {
17201618
"$ref": "#/components/responses/InternalServerError"
17211619
},
@@ -1760,18 +1658,9 @@
17601658
"404": {
17611659
"$ref": "#/components/responses/NotFound"
17621660
},
1763-
"413": {
1764-
"$ref": "#/components/responses/PayloadTooLarge"
1765-
},
1766-
"415": {
1767-
"$ref": "#/components/responses/UnsupportedMediaTypeGlossaries"
1768-
},
17691661
"429": {
17701662
"$ref": "#/components/responses/TooManyRequests"
17711663
},
1772-
"456": {
1773-
"$ref": "#/components/responses/QuotaExceeded"
1774-
},
17751664
"500": {
17761665
"$ref": "#/components/responses/InternalServerError"
17771666
},
@@ -1844,18 +1733,12 @@
18441733
"404": {
18451734
"$ref": "#/components/responses/NotFound"
18461735
},
1847-
"413": {
1848-
"$ref": "#/components/responses/PayloadTooLarge"
1849-
},
18501736
"415": {
18511737
"$ref": "#/components/responses/UnsupportedMediaTypeGlossaries"
18521738
},
18531739
"429": {
18541740
"$ref": "#/components/responses/TooManyRequests"
18551741
},
1856-
"456": {
1857-
"$ref": "#/components/responses/QuotaExceeded"
1858-
},
18591742
"500": {
18601743
"$ref": "#/components/responses/InternalServerError"
18611744
},
@@ -2448,7 +2331,7 @@
24482331
"description": "Quota exceeded. The character limit has been reached."
24492332
},
24502333
"QuotaExceededGlossaries": {
2451-
"description": "Quota exceeded. Too many requests were made to the glossary endpoints recently."
2334+
"description": "Quota exceeded. The glossary creation limit has been reached."
24522335
},
24532336
"InternalServerError": {
24542337
"description": "Internal error."

0 commit comments

Comments
 (0)