Fix bug in PUT where data wasn't being passed through. Fixed typo in status code error checking.