Skip to content

Fix httpClientHandler to properly distinguish error codes #19

@dlongley

Description

@dlongley

See: https://github.com/digitalbazaar/bedrock-jsonld-document-loader/blob/v5.2.0/lib/index.js#L31

This error should be changed to only return a NotFoundError (keeping the message the same for backwards compatibility) on a 404 status code. Otherwise, a different error could be returned. The error should also become a BedrockError that includes the httpStatusCode in the details so it can be processed by callers.

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