automatic rest routes + error handling impr.