     (let [response @results/results]
         (send-response response request)))
 
-(defn error-response
+(defn create-error-response
     [job-name command message]
     {:status "error"
      :job-name job-name

            (let [job-results   (jenkins-api/read-job-results (config/get-jenkins-url request) job-name)]
                 (if job-results
                     (send-plain-response job-results)
                     (-> (error-response job-name "get_job_results" "can not read test results")
                         (send-response request))))
            (-> (job-does-not-exist-response job-name "get_job_results")
                (send-error-response request)))))


(defn job-does-not-exist-response
    [job-name command]
    (create-error-response job-name command "Job does not exist"))

(defn job-already-exist-response
    [job-name command]
    (create-error-response job-name command "Job already exist"))

(defn start-job
    [request]
