Skip to content

Return proper error when searching for block #287

@travisperson

Description

@travisperson

https://github.com/jbenet/go-ipfs/blob/master/server/http/http.go#L40

If the path fails to resolve a 404 should be returned if the err is a ErrNotFound, otherwise a 500 should be returned for generic server errors.

More specific when a Cast of a b58 fails it should return a 400 letting the client know that the request is a malformed syntax and should not be tried again.

A 408 should be returned if there is a timeout when resolving the path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions