Add common error function
Add skeleton route