 @submitURL = (req, res, _) ->
     url = req.param 'url'
     if not url
-        errorHTML res, 404, Errors.MISSING_ID_OR_URL
+        errorHTML res, 400, Errors.MISSING_ID_OR_URL
         return
     if not validateURL url
         errorHTML res, 400, Errors.MALFORMED_URL

# This was part of Zoom.it's original UI / informal website API.
#
@getHomePage = (req, res, _) =>
    if req.query.url
        @submitURL req, res, _
    else
        res.render 'home'

@getContentByURL = (req, res, _) ->
    url = req.param 'url'
    if not url
        errorAPI res, 400, Errors.MISSING_ID_OR_URL
        return
    if not validateURL url
        errorAPI res, 400, Errors.MALFORMED_URL
