     for key of collections
       exportObject[key] = yield collections[key].find().exec()
     this.body = [exportObject]
+    this.status = 200
   catch e
     utils.logAndSetResponse this, 500, "Could not fetch specified metadata via the API #{e}", 'error'
+    this.body = e.message
+    this.status = 400
 
 
 # API endpoint that inserts metadata from import

    insertObject = this.request.body
    
    for key of insertObject
      insertDocuments = insertObject[key]
      for doc in insertDocuments
        try

          }
        
    this.body = returnObject
    this.status = 201
  catch e
    utils.logAndSetResponse this, 500, "Could not fetch all users via the API #{e}", 'error'
    this.body = e.message
    this.status = 400


# API endpoint that updates metadata from import
