Update http.rb

Jenkins returns 201 when the build has been enqueued.
Accept both 302 and 201 response code
Update http.rb
Merge pull request #159 from pedrogimenez/master

Fix a bug with the status code when building