package errors

import "github.com/containerd/containerd/v2/core/remotes/errors"

Index

Functions

func NewUnexpectedStatusErr

func NewUnexpectedStatusErr(resp *http.Response) error

NewUnexpectedStatusErr creates an ErrUnexpectedStatus from HTTP response

Types

type ErrUnexpectedStatus

type ErrUnexpectedStatus struct {
	Status                    string
	StatusCode                int
	Body                      []byte
	RequestURL, RequestMethod string
}

ErrUnexpectedStatus is returned if a registry API request returned with unexpected HTTP status

func (ErrUnexpectedStatus) Error

func (e ErrUnexpectedStatus) Error() string

Source Files

errors.go

Version
v2.0.4 (latest)
Published
Mar 17, 2025
Platform
darwin/amd64
Imports
3 packages
Last checked
1 month ago

Tools for package owners.