Return HTTP 405 for unsupported request method
diff --git a/src/setup_httpd.erl b/src/setup_httpd.erl
index 32c6104..006ed45 100644
--- a/src/setup_httpd.erl
+++ b/src/setup_httpd.erl
@@ -39,7 +39,10 @@
                 ok ->
                     chttpd:send_json(Req, 200, {[{state, cluster_finished}]})
             end
-    end.
+    end;
+handle_setup_req(#httpd{}=Req) ->
+    chttpd:send_method_not_allowed(Req, "GET,POST").
+
 
 get_options(Options, Setup) ->
     ExtractValues = fun({Tag, Option}, OptionsAcc) ->