httputil

package
v0.0.0-...-e878d2f Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: LGPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package httputil represents the http responses documentation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpBadRequestErr

type HttpBadRequestErr struct {
	Message string `json:"error" example:"bad request"`
}

HttpBadRequestErr returns a error message

type HttpInternalServerErr

type HttpInternalServerErr struct {
	Message string `json:"error" example:"internal server error"`
}

HttpInternalServerErr returns a error message

type HttpOkWithMessage

type HttpOkWithMessage struct {
	Message string `json:"message" example:"feedback message"`
}

HttpOkWithMessage returns a 200 response with a message

type PingInternalServerErr

type PingInternalServerErr struct {
	Message string `json:"message" example:"unexpected error"`
}

PingInternalServerErr example

type PingOk

type PingOk struct {
	Message string `json:"message" example:"pong"`
}

PinkOk example

Jump to

Keyboard shortcuts

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