 							server.use(express.static config.outPath)
 
 						# 404 Middleware
-						server.use (req,res,next) ->
-							if config.customErrors
-								return next()
-							return res.send(404)
+						server.use (req, res, next) ->
+							notFound = 404
+							code = findClosest(notFound)
+							if errorFiles.hasOwnProperty(code) && pathUtil.existsSync errorFiles[code]
+								data = fsUtil.readFileSync(errorFiles[code], 'utf8')
+							else
+								data = notFound + ' ' + errorCodes[notFound]
+
+							return res.send(data, notFound)
+
+						# 500 Middleware
+						server.use (err, req, res, next) ->
+							# Assume 500 for now
+							serverError = 500
+							code = findClosest(serverError)
+							if errorFiles.hasOwnProperty(code) && pathUtil.existsSync errorFiles[code]
+								data = fsUtil.readFileSync(errorFiles[code], 'utf8')
+							else
+								data = serverError + ' ' + errorCodes[serverError]
+
+							return res.send(datam serverError)
 
 				# Start the Server
 				startServer()

	getEvents: ->
		@events

	# ---------------------------------
	# Collections


		# Extend Server
		# Whether or not we should extend the server with extra middleware and routing
		extendServer: true

		# Port
		# The port that the server should use
