Skip to content

fix(oci): return 404 instead of 400 for MANIFEST_UNKNOWN#56

Merged
The127 merged 1 commit intomasterfrom
fix/manifest-unknown-404
Apr 17, 2026
Merged

fix(oci): return 404 instead of 400 for MANIFEST_UNKNOWN#56
The127 merged 1 commit intomasterfrom
fix/manifest-unknown-404

Conversation

@The127
Copy link
Copy Markdown
Owner

@The127 The127 commented Apr 17, 2026

Summary

NewOciError defaults to 400 Bad Request. Both MANIFEST_UNKNOWN errors in GetManifestByReference (tag not found, manifest not found) were missing .WithHttpCode(http.StatusNotFound), so the registry returned 400 instead of the 404 the OCI Distribution Spec requires.

Test plan

  • docker pull registry/repo:nonexistent-tag returns 404

@The127 The127 merged commit e994f97 into master Apr 17, 2026
6 checks passed
@The127 The127 deleted the fix/manifest-unknown-404 branch April 17, 2026 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant