Updated ruby fork to incorporate merge feedback.
Fixed issue where the error was not getting set properly when the server responded with a 500.