MP1-4155: fixed HTTP protocol (crash on error)