Added error and methods POST, PUT and DELETE