status

package
v0.0.0-...-f200a5c Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2017 License: MIT Imports: 3 Imported by: 15

Documentation

Overview

Package status provides all the error pages like 404, 405, 500, 501, and the page when a CSRF token is invalid.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error404

func Error404(w http.ResponseWriter, r *http.Request)

Error404 - Page Not Found.

func Error405

func Error405(allowedMethods string) func(w http.ResponseWriter, r *http.Request)

Error405 - Method Not Allowed.

func Error500

func Error500(w http.ResponseWriter, r *http.Request)

Error500 - Internal Server Error.

func Error501

func Error501(w http.ResponseWriter, r *http.Request)

Error501 - Not Implemented.

func InvalidToken

func InvalidToken(w http.ResponseWriter, r *http.Request)

InvalidToken shows a page in response to CSRF attacks.

func Load

func Load()

Load the routes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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