updated status code checks so that 201 is a success
added method property to item so that PUT can be used as well as POST