{"modulePath":"github.com/twitchdev/twitch-cli","version":"v1.1.25","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package mock_errors\n\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0\n\n## Functions\n\n```go\nfunc GetErrorBytes(statusCode int, err error, message string) []byte\n```\n\n```go\nfunc WriteBadRequest(w http.ResponseWriter, message string)\n```\n\n```go\nfunc WriteForbidden(w http.ResponseWriter, message string)\n```\n\n```go\nfunc WriteNotFound(w http.ResponseWriter, message string)\n```\n\n```go\nfunc WriteServerError(w http.ResponseWriter, message string)\n```\n\n```go\nfunc WriteUnauthorized(w http.ResponseWriter, message string)\n```\n\n```go\nfunc WriteUnprocessableEntity(w http.ResponseWriter, message string)\n```\n\n## Types\n\n```go\ntype ErrorMessage struct {\n\tStatusCode int    `json:\"status\"`\n\tError      string `json:\"error\"`\n\tMessage    string `json:\"message\"`\n}\n```\n\n","path":"github.com/twitchdev/twitch-cli/internal/mock_api/mock_errors","name":"mock_errors","synopsis":"","isRedistributable":true}
