Change to read status code from response header to figure out error