package errors

import "github.com/containerd/containerd/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
v1.7.10
Published
Nov 29, 2023
Platform
js/wasm
Imports
3 packages
Last checked
2 minutes ago

Tools for package owners.