         appConfig = require Paths.application.configs.app
         res.status(200).json appConfig
       else
-        res.status(204).send ''
+        error = "Could not find #{Paths.appConfig.configs.app}"
+        res.status(404).json { error: error }
 
     @app.get "/__appgyver/cloud_config", (req, res) =>
       res.header "Access-Control-Allow-Origin", "*"

      data = new Data
      data.init().then ->
        res.status(200).send "Success!"

    helper "post", "/__appgyver/data/sync", (req, res) =>
      data = new Data

      res.header "Access-Control-Allow-Headers", "Content-Type"
      res.status(200).send "Pong!"

    @app.get "/__appgyver/deploy", (req, res) =>
      res.header "Access-Control-Allow-Origin", "*"
      res.header "Access-Control-Allow-Headers", "Content-Type"

      Deploy = require "../Deploy"
      deploy = new Deploy

      deploy.run().then () ->
        res.status(200).json deploy.cloudConfig
      .catch Deploy.DeployError, (error) ->
        res.status(500).json { error: error.message }

    @app.get "/__appgyver/app_config", (req, res) =>
      res.header "Access-Control-Allow-Origin", "*"
