in reply to REST::Client 500 Error

Look on server side logs to see why it is refusing the connection.