Skip to content

Commit 9236689

Browse files
committed
fix: process with non-deprecated http status names (#456)
1 parent 13ed18d commit 9236689

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/main/kotlin/io/openapiprocessor/spring/processor/SpringHttpStatus.kt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ val HTTP_STATUS = hashMapOf(
2929

3030
"300" to getEnum("MULTIPLE_CHOICES"),
3131
"301" to getEnum("MOVED_PERMANENTLY"),
32-
"302" to getEnum("MOVED_TEMPORARILY"),
33-
//"302" to getEnum("FOUND"), // replaces MOVED_TEMPORARILY
32+
"302" to getEnum("FOUND"), // was MOVED_TEMPORARILY
3433
"303" to getEnum("SEE_OTHER"),
3534
"304" to getEnum("NOT_MODIFIED"),
3635
"305" to getEnum("USE_PROXY"),
@@ -50,10 +49,8 @@ val HTTP_STATUS = hashMapOf(
5049
"410" to getEnum("GONE"),
5150
"411" to getEnum("LENGTH_REQUIRED"),
5251
"412" to getEnum("PRECONDITION_FAILED"),
53-
"413" to getEnum("REQUEST_ENTITY_TOO_LARGE"),
54-
//"413" to getEnum("PAYLOAD_TOO_LARGE"), // replaces REQUEST_ENTITY_TOO_LARGE
55-
"414" to getEnum("REQUEST_URI_TOO_LONG"),
56-
//"414" to getEnum("URI_TOO_LONG"), // replaces REQUEST_URI_TOO_LONG
52+
"413" to getEnum("PAYLOAD_TOO_LARGE"), // was REQUEST_ENTITY_TOO_LARGE
53+
"414" to getEnum("URI_TOO_LONG"), // was REQUEST_URI_TOO_LONG
5754
"415" to getEnum("UNSUPPORTED_MEDIA_TYPE"),
5855
"416" to getEnum("REQUESTED_RANGE_NOT_SATISFIABLE"),
5956
"417" to getEnum("EXPECTATION_FAILED"),

0 commit comments

Comments
 (0)