From 6fa73071a5d0c50bb218d6f7f96375f6913ace69 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Fri, 10 Feb 2017 19:56:03 +0000 Subject: [PATCH] Add HTTP 501 error message --- web/err.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/err.go b/web/err.go index 83008757..3166394d 100644 --- a/web/err.go +++ b/web/err.go @@ -141,5 +141,10 @@ var errs = map[int]*err{ Details: "Internal server error", Description: "There was a problem with our servers, and we have been notified.", }, + + 501: { + Code: 501, + Details: "Not Implemented", + Description: "The server either does not recognize the request method, or it lacks the ability to fulfill the request.", }, }