{"modulePath":"code.cloudfoundry.org/cfnetworking-cli-api","version":"v0.0.0-20190103195135-4b04f26287a6","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package networkerror\n\n## Types\n\n```go\ntype BadRequestError struct {\n\tMessage string `json:\"error\"`\n}\n```\n\n```go\nfunc (e BadRequestError) Error() string\n```\n\n```go\ntype ConflictError struct {\n\tMessage string `json:\"error\"`\n}\n```\n\n```go\nfunc (e ConflictError) Error() string\n```\n\n```go\ntype ErrorResponse struct {\n\tMessage string `json:\"error\"`\n}\n```\n\n```go\nfunc (e ErrorResponse) Error() string\n```\n\n```go\ntype ForbiddenError struct {\n\tMessage string `json:\"error\"`\n}\n```\n\n```go\nfunc (e ForbiddenError) Error() string\n```\n\n```go\ntype InvalidAuthTokenError struct {\n\tMessage string\n}\n```\nInvalidAuthTokenError is returned when the client has an invalid authorization header.\n\n```go\nfunc (e InvalidAuthTokenError) Error() string\n```\n\n```go\ntype NotAcceptableError struct {\n\tMessage string `json:\"error\"`\n}\n```\n\n```go\nfunc (e NotAcceptableError) Error() string\n```\n\n```go\ntype NotFoundError struct {\n\tMessage string\n}\n```\nNotFoundError wraps a generic 404 error.\n\n```go\nfunc (e NotFoundError) Error() string\n```\n\n```go\ntype RawHTTPStatusError struct {\n\tStatusCode  int\n\tRawResponse []byte\n\tRequestIDs  []string\n}\n```\nRawHTTPStatusError represents any response with a 4xx or 5xx status code.\n\n```go\nfunc (r RawHTTPStatusError) Error() string\n```\n\n```go\ntype RequestError struct {\n\tErr error\n}\n```\nRequestError represents a generic error encountered while performing the HTTP request. This generic error occurs before a HTTP response is obtained.\n\n```go\nfunc (e RequestError) Error() string\n```\n\n```go\ntype SSLValidationHostnameError struct {\n\tMessage string\n}\n```\nSSLValidationHostnameError replaces x509.HostnameError when the server has SSL certificate that does not match the hostname.\n\n```go\nfunc (e SSLValidationHostnameError) Error() string\n```\n\n```go\ntype UnauthorizedError struct {\n\tMessage string `json:\"error\"`\n}\n```\n\n```go\nfunc (e UnauthorizedError) Error() string\n```\n\n```go\ntype UnexpectedResponseError struct {\n\tErrorResponse\n\n\tRequestIDs   []string\n\tResponseCode int\n}\n```\nUnexpectedResponseError is returned when the client gets an error that has not been accounted for.\n\n```go\nfunc (e UnexpectedResponseError) Error() string\n```\n\n```go\ntype UnverifiedServerError struct {\n\tURL string\n}\n```\nUnverifiedServerError replaces x509.UnknownAuthorityError when the server has SSL but the client is unable to verify it's certificate\n\n```go\nfunc (UnverifiedServerError) Error() string\n```\n\n","path":"code.cloudfoundry.org/cfnetworking-cli-api/cfnetworking/networkerror","name":"networkerror","synopsis":"","isRedistributable":true}
