mirror of
https://github.com/apple/container.git
synced 2026-09-08 16:55:41 +00:00
Also creates an `ErrorResponse` type to model the errors typically returned by a container registry. Reference: https://distribution.github.io/distribution/spec/api/#errors Example error message: ``` Error: HTTP request to https://ghcr.io/token?client_id=containerization-registry-client&service=ghcr.io&scope=repository:user/image:pull failed with response: 403 Forbidden. Reason: {"errors":[{"message":"requested access to the resource is denied","code":"DENIED"}]} ``` Signed-off-by: Aditya Ramani <a_ramani@apple.com>