diff --git a/httpserver-header.lua b/httpserver-header.lua index 38b5b6a..5f01ef7 100644 --- a/httpserver-header.lua +++ b/httpserver-header.lua @@ -5,10 +5,10 @@ return function (connection, code, extension) local function getHTTPStatusString(code) - local codez = {[200]="OK", [400]="Bad Request", [404]="Not Found", [501]="Not Implemented",} + local codez = {[200]="OK", [400]="Bad Request", [404]="Not Found",} local myResult = codez[code] -- enforce returning valid http codes all the way throughout? - if myResult then return myResult else return codez[501] end + if myResult then return myResult else return "Not Implemented" end end local function getMimeType(ext)