feature/patch

cleanup
added http status and headers from the rest service
prepared the way for the patch function