gluon-config-api: "Not Implemented" is 501
This commit is contained in:
parent
7ae6a2b7d0
commit
c19e083fb4
@ -125,9 +125,9 @@ entry({"v1", "config"}, call(function(http, renderer)
|
|||||||
http:header('Content-Type', 'application/json; charset=utf-8')
|
http:header('Content-Type', 'application/json; charset=utf-8')
|
||||||
http:write(result)
|
http:write(result)
|
||||||
else
|
else
|
||||||
http:status(400, 'Bad Request')
|
http:status(501, 'Not Implemented')
|
||||||
http:header('Content-Length', '0')
|
http:header('Content-Length', '0')
|
||||||
http:write('Not implemented')
|
http:write('Not Implemented\n')
|
||||||
end
|
end
|
||||||
|
|
||||||
http:close()
|
http:close()
|
||||||
|
Loading…
Reference in New Issue
Block a user