mox/vendor/github.com/mjl-/sherpa/codes.go
Mechiel Lukkien cb229cb6cf
mox!
2023-01-30 14:27:06 +01:00

19 lines
689 B
Go

package sherpa
// Errors generated by both clients and servers
const (
SherpaBadFunction = "sherpa:badFunction" // Function does not exist at server.
)
// Errors generated by clients
const (
SherpaBadResponse = "sherpa:badResponse" // Bad response from server, e.g. JSON response body could not be parsed.
SherpaHTTPError = "sherpa:http" // Unexpected http response status code from server.
SherpaNoAPI = "sherpa:noAPI" // No API was found at this URL.
)
// Errors generated by servers
const (
SherpaBadRequest = "sherpa:badRequest" // Error parsing JSON request body.
SherpaBadParams = "sherpa:badParams" // Wrong number of parameters in function call.
)