httpmodel

package
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderContentType   = "Content-Type"
	HeaderAuthorization = "Authorization"
	MimeJSON            = "application/json"
	MimeParameterUTF8   = "charset=utf-8"
)

Variables

View Source
var ErrMessageInternalServerError = "internal server error"
View Source
var ErrMessageNotFound = "not found"
View Source
var ErrMessageUnauthorized = "unauthorized"
View Source
var ErrResponseInternalServerError = []byte(`{"error": {"message": "internal server error"}}`)
View Source
var ErrResponseNotFound = []byte(`{"error": {"message": "not found"}}`)
View Source
var ErrResponseUnauthorized = []byte(`{"error": {"message": "unauthorized"}}`)
View Source
var ErrResponseUnsupportedMediaType = []byte(`{"error": {"message": "unsupported media type"}}`)

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Error struct {
		Message string `json:"message"`
	} `json:"error"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL