github.com/saucelabs/saucectl@v0.175.1/internal/http/errors.go (about)

     1  package http
     2  
     3  import (
     4  	"errors"
     5  
     6  	"github.com/saucelabs/saucectl/internal/msg"
     7  )
     8  
     9  var (
    10  	// ErrServerError is returned when the server was not able to correctly handle our request (status code >= 500).
    11  	ErrServerError = errors.New(msg.InternalServerError)
    12  	// ErrJobNotFound is returned when the requested job was not found.
    13  	ErrJobNotFound = errors.New(msg.JobNotFound)
    14  	// ErrAssetNotFound is returned when the requested asset was not found.
    15  	ErrAssetNotFound = errors.New(msg.AssetNotFound)
    16  	// ErrTunnelNotFound is returned when the requested tunnel was not found.
    17  	ErrTunnelNotFound = errors.New(msg.TunnelNotFound)
    18  )