added 'api' module
added error page