      :id (:workbook/id workbook)})
 
   :handle-not-found
-  {:links {:up {:href (path-for :service-document-handler)}}
-   :error "Workbook not found."})
+  (error-body "Workbook not found."))
 
 ;; ---- Create Workbook -------------------------------------------------------
 


(defn path-for [handler & params]
  (apply bidi/path-for routes handler params))

(defn workbook-path [workbook]
  (path-for :workbook-handler :id (:workbook/id workbook)))


(def media-types ["application/json" "application/transit+json"
                  "application/edn"])

(defn decode-etag [etag]
  (subs etag 1 (dec (count etag))))

;; ---- Routes ----------------------------------------------------------------

