Added error class
Added sample endpoints file