Skip to content

Unpublished packages should not return a 404 #639

Open
@lowlighter

Description

@lowlighter

The API should be able to differentiate between a missing package and an empty package.

If you curl the API on a created package but that has no release yet, it shouldn't return a 404:

404 - Not Found

But rather a JSON similar to this one, just with no versions and maybe latest set to null

{
  "scope": "scope",
  "name": "package",
  "latest": null,
  "versions": {}
}

Also on a related note, using the version badge with an unreleased package should also be updated accordingly to inform the package exist but isn't released yet

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions