Handle SchemeNotSupported error in HTTP API

This is related to #744.