-
Notifications
You must be signed in to change notification settings - Fork 234
gateway: clarify 3XX on trustless gw #494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -235,6 +235,25 @@ In case both are present in the request, the value from the [`Accept`](#accept-r | |
|
||
Below MUST be implemented **in addition** to "HTTP Response" of :cite[path-gateway]. | ||
|
||
## Response Status Codes | ||
|
||
### `200` OK | ||
|
||
The request succeeded. | ||
|
||
If the HTTP method was `GET`, then data is transmitted in the message body. | ||
|
||
### `404` Not Found | ||
|
||
Error to indicate that requested resource is not provided by the gateway. | ||
|
||
### `3XX` Redirects | ||
Comment on lines
+238
to
+250
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same, unsure how this plays with #491 and path-gateway status codes. Should we edit there instead? Begs the question, does it make sense that a recursive trustless gateway redirects and the non-recursive doesn't? |
||
|
||
Non-recursive trustless gateway SHOULD NOT return HTTP redirects. | ||
Change of URL should occur by announcing it to the routing system. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
i'm slightly confused by this line.. which routing system? do you mean to imply that clients receiving a 3xx redirect from a spec-compliant trustless gateway should detect the 3xx and handle it appropriately? maybe it's just too late for me. |
||
|
||
Clients SHOULD ignore redirects and interpret them the same way as `404`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How does the client know that it is talking to a non-recursive gateway though? Ideally the same client should work for all the gateways pretty much the same so the requirement is a bit weird (in some cases redirects should be followed and in others not). |
||
|
||
## Response Headers | ||
|
||
### `Content-Type` (response header) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are touching these in #491 , should we merge that first?