Fixed interpretation of subscribe() return values, added HTTP-level error handling