mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 05:54:38 +03:00
mox!
This commit is contained in:
19
vendor/github.com/mjl-/sherpa/codes.go
generated
vendored
Normal file
19
vendor/github.com/mjl-/sherpa/codes.go
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
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.
|
||||
)
|
Reference in New Issue
Block a user