Skip to content

Commit 36c3bbd

Browse files
committed
fix(ETU-69733): Add 302 as valid response code for GET
Use 302 together with the response header "Location" to indicate that the resource is temporarily available at another URL.
1 parent e03f03e commit 36c3bbd

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.spectral.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ rules:
410410
then:
411411
function: enumeration
412412
functionOptions:
413-
values: ["200", "304", "400", "401", "403", "404", "500", "503"]
413+
values: ["200", "302", "304", "400", "401", "403", "404", "500", "503"]
414414

415415
entur-delete-responses-validation:
416416
message: "Invalid response code: {{property}}. DELETE responses MUST use one of these response codes: 200, 204, 400, 401, 403, 404, 409, 500, 503"

guidelines.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ Here, only 1 specification will be shown on the Developer Portal, which is a com
310310
| 201 | Created | |:white_check_mark:|:white_check_mark:| | |
311311
| 202 | Accepted | |:white_check_mark:| | | |
312312
| 204 | No Content | |:white_check_mark:|:white_check_mark:|:white_check_mark:|:white_check_mark:|
313+
| 302 | Found |:white_check_mark:| | | | |
313314
| 303 | See Other | |:white_check_mark:| | | |
314315
| 400 | Bad Request |:white_check_mark:|:white_check_mark:|:white_check_mark:|:white_check_mark:|:white_check_mark:|
315316
| 401 | Unauthorized |:white_check_mark:|:white_check_mark:|:white_check_mark:|:white_check_mark:|:white_check_mark:|

0 commit comments

Comments
 (0)