fixed return codes to 204 on PATCH and DELETE as jQuery often requires it to avoid parsing a non-existant JSON