Added httpCode to HTTP error