Update http.rb

Jenkins returns 201 when the build has been enqueued.
Accept both 302 and 201 response code
Update http.rb