Skip to content

Commit 6163ff9

Browse files
committed
Return 500 on resolution errors
1 parent 55c6a67 commit 6163ff9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

http-gateways/PATH_GATEWAY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,8 @@ Gateway MUST respond with HTTP error when it is not possible to traverse the req
679679
- [`404 Not Found`](#404-not-found) should be returned when the root CID is valid and traversable, but
680680
the DAG it represents does not include content path remainder.
681681
- Error response body should indicate which part of immutable content path (`/ipfs/{cid}/path/to/file`) is missing
682-
- [`400 Bad Request`](#400-bad-request) can be used for remaining traversal errors caused by invalid or unsupported DAG types.
682+
- [`500 Internal Server Error`](#500-internal-server-error) can be used for remaining traversal errors,
683+
such as invalid CIDs, domains that cannot be resolved, or IPNS keys that cannot be resolved.
683684

684685
## Best practices for HTTP caching
685686

0 commit comments

Comments
 (0)