minor tweaks in error  responses; delete functionality added