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 `json:"status"`
	StatusCode    int    `json:"statusCode"`
	Body          []byte `json:"body,omitempty"`
	RequestURL    string `json:"requestURL,omitempty"`
	RequestMethod string `json:"requestMethod,omitempty"`
}

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.1.4 (latest)
Published
Jul 30, 2025
Platform
darwin/amd64
Imports
4 packages
Last checked
1 day ago

Tools for package owners.