Return HTTP error as NSError