Add error.js for the error handling
Add base for API docs