Added exceptions for invalid PUT and DELETE cases.