Updates to status code check and ability to set request method (POST/PUT) on item

Added method property to item so that PUT can be used as well as POST.
Updated status code check so that 201 (Created) status code is a success.