 
 						# 404 Middleware
 						server.use (req,res,next) ->
+							if config.customErrors
+								return next()
 							return res.send(404)
 
 				# Start the Server

									contentRendered = document.get('contentRendered')
									if err
										docpad.error(err)
										return res.send(err.message, 500)
									else
										return res.send(contentRendered)
							else

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

		# Enable Custom Error Pages
		# A flag to provide an entry to handle custom error pages
		customErrors: false

		# Port
		# The port that the server should use
