http_response

package
v0.0.0-...-9df3d9d Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STANDARD_200_STATUS = "OK"
	STANDARD_400_STATUS = "Bad Request"
	STANDARD_401_STATUS = "Unauthorized"
	STANDARD_403_STATUS = "Forbidden"
	STANDARD_404_STATUS = "Not Found"
	STANDARD_409_STATUS = "Conflict"
	STANDARD_415_STATUS = "Unsupported Media Type"
	STANDARD_422_STATUS = "Unprocessable Entity"
	STANDARD_500_STATUS = "Internal Server Error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	StatusCode int         `json:"status_code"`
	Message    string      `json:"message"`
	Status     string      `json:"status"`
	Timestamp  string      `json:"timestamp"`
	Data       interface{} `json:"data"`
}

status code 200

Jump to

Keyboard shortcuts

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