return value fixes

201 for put/post, 405 (method not allowed) for invalidexception
(workertrait) - tests adjusted and have code coverage ignore
vendor
Merge pull request #20 from dwsla/return_http_codes

return value fixes