You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/routing/http-routing-v1.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -261,6 +261,8 @@ The content body must be a [`application/vnd.ipfs.ipns-record`][application/vnd.
261
261
262
262
## DHT Routing API
263
263
264
+
The DHT Routing API is OPTIONAL. Implementations that do not support DHT operations MAY return `404` (Not Found) or `501` (Not Implemented) as specified in [Error Codes](#error-codes).
265
+
264
266
### `GET /routing/v1/dht/closest/peers/{key}`
265
267
266
268
This optional endpoint allows light clients to lower the cost of DHT walks in browser contexts.
@@ -278,6 +280,7 @@ This optional endpoint allows light clients to lower the cost of DHT walks in br
278
280
-`200` (OK): the response body contains peer records.
279
281
-`404` (Not Found): must be returned if no matching records are found.
280
282
-`422` (Unprocessable Entity): request does not conform to schema or semantic constraints.
283
+
-`501` (Not Implemented): may be returned if DHT operations are not supported.
0 commit comments