               metadata   (get input-data :metadata)]
             (if (results/job-exists? job-name)
                 (-> (job-already-exist-response job-name create-job-command)
-                    (send-error-response request))
+                    (send-error-response request :bad-request))
                 (if (and job-name git-repo branch)
                     (-> (jenkins-api/create-job (config/get-jenkins-url request)
                                                 (config/get-jenkins-auth request)

                 (if job-metadata
                     (send-response job-metadata request))
                     (-> (job-does-not-exist-response job-name "get-job")
                         (send-error-response request)))
            (-> (job-does-not-exist-response job-name "get-job")
                (send-error-response request)))))

(defn update-job
    [request]

                        (send-response request))
                    (-> (create-error-response (or job-name "not set!") create-job-command
                                               (job-invalid-input job-name git-repo branch))
                        (send-error-response request :bad-request)))))
        (catch Exception e
                (-> (create-error-response "not set!" create-job-command "invalid input")
                    (send-error-response request :bad-request)))))

(defn uri->job-name
    [uri prefix]
