Test successful and erroneous response status codes.