Spruced up http api