Update server.js

Added API stubs for error handling middleware.