TAP-2112, fix HTTP protocol response from Rails/JSON