Basic error middleware for express.