Fixed the wrong references to the response's statusCode.